Problems with ShutDownRequest
Jan Schenkel
janschenkel at yahoo.com
Wed May 25 01:25:22 EDT 2005
--- Howard Bornstein <howard.bornstein at gmail.com>
wrote:
> One of my apps is not processing ShutDownRequest
> properly, but it's
> very complex, so I decided to build a simple test
> stack. I'm seeing
> the same thing with it. All my testing is done after
> building a
> standalone from the stack.
>
> [snip]
>
> If I can't trap shutDownRequest, my clients will
> lose all their data
> if they choose Quit without saving their document.
>
> What am I missing?
>
> --
> Regards,
>
> Howard Bornstein
>
Hi Howard,
Have you tried to 'start using' the mainstack of your
standalone ? When you create a new stack, it is its
own mainstack -- so when uncaught by the target stack,
the 'shutdownRequest' message would go straight to the
engine, bypassing your standalone mainstack.
Another method to ensure that it will get caught is by
putting the 'shutdownRequest' handler in a backscript.
It seems to work for me in the Quartam Reports layout
builder.
Hope this helped,
Jan Schenkel.
Quartam - Tools for Revolution
<http://www.quartam.com>
=====
"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the use-livecode
mailing list