Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer Events
Message
From
29/10/2002 06:13:50
 
 
To
29/10/2002 06:05:25
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00716354
Message ID:
00716359
Views:
15
>I am looking for a way to detect inactivity and shutdown my app in a clean way.....

The way some frameworks do it is every base class has code in InteractiveChange and ProgramaticChange - and a few others - that reset a timer every time you press a key or do something. If there is inactivity, the main app timer will fire, thereby triggering a controlled shutdown.

Note that to do a controlled shutdown you would have to trigger every open form's and object's TableRevert() and RollBack (if a transaction is open), as you could have dirty buffers from the guy that started changes to a record and went to lunch in the middle of the session. Naahh. Users don't do that, do they?

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform