General information
Category:
Coding, syntax & commands
Title:
Responding to OS Shutdown or Reboot
I have an application that should close when the OS is rebooted or whatever.
I have "on shutdown do THE ONLY QUIT" (source below) set and generally it works when I logout, reboot or shutdown - sometimes, particularly when the application is minimized, the application will throw a "Fatal Exception code=C0000005" pointing at the "read events" command somewhere in the top of my "main.prg".
PROCEDURE THEONLYQUIT
*------------------------------------------
on shutdown QUIT && prevent recursive calls
*...
* some other cleanup
*...
close databases all
clear events
QUIT
RETURN && ---------------------------------
Any ideas ?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only