Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know this is the last user?
Message
De
06/01/2012 22:58:07
Jim Wiggins
Affordable Custom Software
Illinois, États-Unis
 
 
À
06/01/2012 17:40:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01532350
Message ID:
01532365
Vues:
57
Jerry,

Two thoughts:

1. How important is it to have regular backups? Can you be sure someone won't neglect to log out for too long a time? If so, you should consider a separate program for backing up that runs periodically and notifies you if it's been too long since it was able to back up.

2. Do all users share the same, application-specific resource file? If so, a separate program which doesn't use that resource file can attempt to open the resource file exclusively. If it throws an error, the program must be running. Or, the same program can SET RESOURCE OFF and then try to open the resource file. If it succeeds, no one else is in the program and it's OK to backup. And, as long as the resource file is open, no one will be able to run the program. Of course, your ON ERROR routine should gracefully handle that situation.

Jim Wiggins
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform