Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to see if file can be used exclusive w/o causing err
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00405024
Message ID:
00405063
Views:
13
>This isn't reliable. Someone else can grab the file between the FLOCK() and the USE EXCLUSIVE.

I've heard that said, but it's almost impossible to prove it without some kind of artificial looping, it's so fast. Never yet seen a conflict in years of doing this from way back using it in C years ago. But my general rule on this is simply one of consequences: If no harm is done with a missed USE EXCL on a lock, go for that method if you want. If it can cause trouble, don't.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform