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".