En/na amir ha escrit:


At first, I tried AssignFile and passed the TextFile(Text) variable to fpflock with LOCK_EX. It didn't work and both processes can access the file.

Maybe fpLock just needs an open file, and AssignFile just establishes which filename corresponds to a pascal file, it doesn't open it. Try a "reset(InputFile)", though I think reset won't wait, it will just fail if the file is locked.

Bye
--
Luca

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to