Reliable way to do something on shutdown?

J. Landman Gay jacque at hyperactivesw.com
Tue Jun 18 21:54:30 EDT 2013


On 6/18/13 7:59 PM, Paul D. DeRocco wrote:
>> From: Phil Davis
>>
>> Maybe a shutDownRequest handler in the script of your
>> mainStack would do
>> the job. In effect this lets you pause the shutdown process before it
>> does anything, make sure your external is closed, then pass
>> shutdownRequest. I think I would start there.
>
> Actually, that's where I did start, and it didn't work either.
>
>> Or 'closeStackRequest'
>> like Terry suggested - it would work in the IDE or the
>> standalone. That might be a better approach.
>
> I'll try that this evening. But I wish I understood why what should
> "obviously" work, doesn't.
>

ShutdownRequest is sent when the user tries to quit. CloseStackRequest 
is sent when they try to close a window, like when they click on the 
close box.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list