>Hi--
>
>I ran into a locking problem in 8 today.
>
>Go to one computer on a network, use a file, and flock() it.
>
>Go to another computer, and attempt to USE the same file.
>
>The USE statement waits on a lock, and if error trapping is enabled, 108 File In Use by Another is issued.
>
>Does anyone know if Microsoft is aware of it, and is there a workaround? Are there perhaps some new "features" in FLOCK or USE?
>
>Thanks,
>
Dennis,
In addition to what BOb said, be aware that FLOCK() locks the header (in all versions). In contrast, RLOCK() only locks the current record. VFP needs the information in the header to properly process the table.
George
Ubi caritas et amor, deus ibi est