Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2008 Server
>I have an application that indicates whether a user is logged into it, and if a record is being modified. When the uses closes the application, it updates the online status. I discovered that if the user logs out of Windows, the VFP application is forced to close, and the online status remains unchanged. Is there a way for VFP to detect whether the user is logging out of Windows, or shutting down, so that it can perform its cleanup?
>
while you can hook windows events, it may be safer to keep a lock on a shared table which is automatically freed if the app closes/crashes or the machine is disconnected.
my 0.02€
thomas
Précédent
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