Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
General way to detect inactivity
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00454252
Message ID:
00454257
Vues:
26
>I'm thinking I would like to shut down my reservation app if it is not used for a while (say 15 minutes). I'm using a file server and my philosophy is that the fewer clients that have files open the better. I would probably go to some minimal state where the app is still running but no tables are open.
>
>I can imagine setting a timer to fire every 60 seconds and then checking to see if 15 minutes have elapsed since some time stamp was last set.
>
>I'm trying to imagine the most general place in the app (VFE framework) to make the time stamp. Does anyone have a favorite solution to this problem?

I can't speak about VFE, but generally the way I see this handled is that the different object (forms, controls, etc) report each action to the application object. If the application object does not detect activity for some period of time, it shuts down the forms and shuts itself down.
Chris McCandless
Red Sky Software
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform