The ON SHUTDOWN needs to be cleared before the runtime will close.
> Are you saying that I need to CLEAR EVENTS *before* ON SHUTDOWN will
trigger?
No
> By clicking on End Task button in Windows Task Manager (gives me
'Application is not responding' message)
Change your test to the following:
ON SHUTDOWN DO TestShutDown
PROC TestShutDown
CLEAR EVENTS
ON SHUTDOWN
MESSAGEBOX("On shutdown triggered")
ENDPROC
This should allow you to close the application from the task manager and
you'll see your message.
> is the End Task button equivalent to what you describe as a "system
requested shutdown"
Yes
> If I have a top-level form (vs. a _Screen) based application, does this
mean that ON SHUTDOWN will not fire for me?
No, http://fox.wikis.com/wc.dll?Wiki~OneFormVfpApp~VFP
Tracy
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.