Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
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 ?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement