Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to see if file can be used exclusive w/o causing err
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00405024
Message ID:
00405063
Vues:
14
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform