Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Responding to OS Shutdown or Reboot
Message
De
13/05/1999 14:14:50
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Responding to OS Shutdown or Reboot
Divers
Thread ID:
00218521
Message ID:
00218521
Vues:
55
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
Fil
Voir

Click here to load this message in the networking platform