Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem withn VFP 8 FLock()
Message
De
25/09/2003 12:23:17
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Problem withn VFP 8 FLock()
Divers
Thread ID:
00832329
Message ID:
00832329
Vues:
57
Hi,

I have the following code segment in a program, that was running ok in VFP 6:
 TASK_LockFile = "MyTable.dbf"

 Use (TASK_LockFile)  In 0   Alias TASK_LockFile

 Set Reprocess To 1 Seconds

 If ! fLock ("TASK_LockFile")
    Wait Window TimeOut 20 "TASK_LockFile already locked"
    Quit
 endif

 Set Reprocess To Automatic
 
 Select  TASK_LockFile
 Go      Top
 
 Replace LF_LockDat  with  DateTime ()
This was to prevent having two copies of the same program running (among some other reasons). It worked fine, but now when the second copy of the same program starts, it waits undefinitelly in the "Use (TASK_LockFile) In 0 Alias TASK_LockFile".

That's a bug in VFP 8?

Thanks,

Fernando
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform