>Shari wrote:
>>
>> The "quit" command is hanging in my standalones.
>>
>> I have a menu item "Quit" and a button "Quit".  Both have the same script:
>>
>> case "Quit"
>> global saveMe
>> save stack saveMe # an external stack, not embedded, used to save the
>> data changes in the standalone
>> quit
>> break
>>
>> It just freezes.

Jacqueline then wrote:

>I'm just guessing, but you may have made yourself a loop. The last
>"quit" command may be calling the handler again. Try:


> save stack saveMe
> pass quit


I had a similar problem some time ago that I solved by adding in a bit of a
delay before doing the quit. For example:

on doQuit
wait 10 ticks
quit
end doQuit

This seemed to solve most of the freezing problems. To solve the rest I
added in a few other handlers for closing all open stacks etc before doing
the final quit. Probably overkill but it seems to do the trick.

Michael


_______________________________________________
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard

Reply via email to