Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Responding to OS Shutdown or Reboot
Message
From
13/05/1999 14:14:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Responding to OS Shutdown or Reboot
Miscellaneous
Thread ID:
00218521
Message ID:
00218521
Views:
56
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
Map
View

Click here to load this message in the networking platform