Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem withn VFP 8 FLock()
Message
 
 
À
25/09/2003 12:23:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00832329
Message ID:
00832331
Vues:
61
See SET TABLEVALIDATE command.

>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
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform