Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Waiting for lock
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00024916
Message ID:
00024959
Vues:
52
>>Correct. I remember we already talked about that a few months ago.
>
>Yes, that's why I couldn't understand why I was having problem with that. The traffic has increased so more collosions. I guess it must have been a result when I moved the GetNumero() function from another program into the master one which resulted in overwritting the SECONDS clause.
>
>What difference do you have in your mecanism?


I think you can move the replace command between the if...endif in first time.

FOR lnCompteur=1 TO 10
IF RLOCK()
REPLACE NUMERO WITH NUMERO+1
UNLOCK
lnNext=NUMERO
EXIT
ENDIF
NEXT
SELECT(lnOldSel)
RETURN lnNext

Now, what happen if you can't rlock() after 10 try?
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform