Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer Events
Message
De
29/10/2002 06:13:50
 
 
À
29/10/2002 06:05:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00716354
Message ID:
00716359
Vues:
16
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform