Thanks Bob,

Another good tip to add to my notebook!  Unintended re-initialization can bring 
disastrous consequences.  This, I have discovered.  Sigh.

Gregory




On Mon, Sep 12, 2011, at 1:00 PM, use-livecode-requ...@lists.runrev.com wrote:

> One of the things I do to prevent re-initialization of a card or stack is I 
> create a global, and upon successful initialization I set it to true. I check 
> it's value before initializing and only call the initialization handler if 
> the global is not set to true. This has the benefit of being able to recall 
> the initialization if needed during development without having to quit or 
> close.remove from memory the stack. In the message box: 
> 
> global stackInit;put false into stackInit;openStack
> 
> Bob

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to