Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the fastest way to check the lock status of a file?
Message
From
27/05/2015 08:23:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
What is the fastest way to check the lock status of a file?
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Miscellaneous
Thread ID:
01620236
Message ID:
01620236
Views:
77
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.
Next
Reply
Map
View

Click here to load this message in the networking platform