Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the fastest way to check the lock status of a file?
Message
De
27/05/2015 08:23:03
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
What is the fastest way to check the lock status of a file?
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01620236
Message ID:
01620236
Vues:
76
Hi all,

What is the fastest way to check the lock status of a file?

I used records in a certain table to check who's using the application. Now I use dummy files for that purpose. When checking I first TRY to DELETE the lockfile. If the file still exists afterwards, then the user is still using the application. DELETE is quite fast, but I'm wondering whether there's another even faster way to check it.
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform