On 7/8/00 11:45 pm, Peter Reid <[EMAIL PROTECTED]> wrote:

> I'm developing a CBT stack which shares a number of supporting stacks
> with other CBT stacks.  These supporting stacks are for things such
> as on-line help, print previews, etc.  They are independent main
> stacks opened using either "modeless" or "toplevel" (if they're
> already open but hidden from view).
> 
> Typically, I open such a support stack and then send and "init"
> message to it to cause it to configure itself for its current use
> (using global variables to pass initialisation values).
> 
> Each supporting stack has "destroy stack on close" and "destroy
> window on close" enabled so that they fully disappear (in theory)
> when closed.  However, despite this, whenever I attempt to reopen any
> of these supporting stacks I get an error message saying that I'm
> attempting to "Reload Stack" and do I want to "Save", "Purge" or
> "Cancel"!
> 
> In fact I can get this message 6 or more times in succession,
> irrespective of how I tell it to go away??
> 
> Can anyone suggest a reliable way of opening supporting mainstacks
> repeatedly without getting this error message?

Two useful things to know about destroyStack: before it will work you must
close all stacks in a particular file; if you send a message to a stack or
have an open socket or other action that is going to cause it to be needed,
it won't get removed.  You can manually remove stacks by deleting them - be
careful how you use this command though because if you save changes to any
stack in a file it will remove the deleted stack forever (unless the stack
is a mainStack).

Regards,

Kevin

> Thanks for any help.
> 
> Peter

Kevin Miller <[EMAIL PROTECTED]> <http://www.runrev.com/>
Runtime Revolution Limited (formerly Cross Worlds Computing).
Tel: +44 (0)131 672 2909.  Fax: +44 (0)1639 830 707.


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to