Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem withn VFP 8 FLock()
Message
From
25/09/2003 12:23:17
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Problem withn VFP 8 FLock()
Miscellaneous
Thread ID:
00832329
Message ID:
00832329
Views:
56
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
Next
Reply
Map
View

Click here to load this message in the networking platform