Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A strange behaviour of FLOCK()...... in my opinion
Message
De
30/01/2007 13:00:10
 
 
À
30/01/2007 12:55:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01190544
Message ID:
01190547
Vues:
11
>Let's say I do the followings:
>- open an instance of Visual FoxPro
>- create a table "tabtest" and enter some data
>- issue a FLOCK() on that table
>- perform: "SELECT * FROM tabtest" and I get the data
> Everything's OK so far.
>
>If I open another instance of Visual FoxPro (the previous instance is still opened) and try the same query: "SELECT * FROM tabtest" I get the error message that the file is in use by another user. (SET EXCLUSIVE is OFF in both of the situations)
>Can someone, please, explain to me this type of behaviour because in FPD 2.6, in the same situations, I was able to run that query.
>
>Thanks

I expect it's because it's doing exactly as it says on the tin - performing a file lock, such that another user cannot access the table.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform