Closing a stack vs. setting visible to false

Trevor DeVore lists at
Sat Dec 13 14:35:33 EST 2003

On Dec 13, 2003, at 11:43 AM, J. Landman Gay wrote:

> On 12/12/03 5:56 PM, Trevor DeVore wrote:
>> I have a stack with some QuickTime players objects.  When closing and 
>> reopening the stack the VRs in the players are reset to their default 
>> view.  I can add code to reset this without too much trouble but I'm 
>> wondering it is just easier to catch the closeStackRequest handler 
>> and set the visible of the stack to false so the players aren't 
>> reloaded the next time.  Is setting the visible to false pretty much 
>> the same as having the stack closed but still in memory?  Are there 
>> any gotchas I should be aware of?
> Stacks that are closed do not receive messages. Stacks that are hidden 
> are still considered "open" and do receive messages.
> This may not be a problem if the hidden stack is outside of the main 
> message hierarchy.

Good to know.  The stack is separate from the main program stack so it 
shouldn't be in the main message hierarchy.  I will do some tests to 
see if messages are still getting sent.


More information about the Use-livecode mailing list