Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question about FLOCK and REPROCESS
Message
De
15/02/2001 13:21:59
 
 
À
15/02/2001 13:19:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00476348
Message ID:
00476384
Vues:
25
>I just tested this and I don't understand the results:
>
>SET DATASESSION TO 2
>wait windows iif(flock("trtradm"), "lock OK", "lock not ok")
>
>**Message displayed: Lock OK
>
>SET DATASESSION TO 1
>wait windows iif(flock("trtradm"), "lock OK", "lock not ok")
>
>**Message Displayed: Lock not OK, very fast
>
>SET DATASESSION TO 1
>set reprocess to 100 seconds
>wait windows iif(flock("trtradm"), "lock OK", "lock not ok")
>
>** Message Displayed: Lock not OK, very fast it did not tried for 100 seconds for sure.
>
>
>There must be something I don't do correctly but what?

You probably don't have the table open in the main datasession (1) at all. You can't do a FLOCK() if it's not open.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform