Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Possible to Detect Windows Logoff?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01589576
Message ID:
01589594
Views:
45
>>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

Thank you, Thomas. Yes, the lock already releases when the application closes, however a dashboard that shows user status is not being updated.

---Michael
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform