General information
Category:
Coding, syntax & commands
Environment versions
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
Previous
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