Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
General way to detect inactivity
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00454252
Message ID:
00454257
Views:
24
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform