[Lazarus] File is locked?

Leonardo M. Ramé l.rame at griensu.com
Sun Nov 15 00:19:03 CET 2015


Hi, I'm checking the contents of an .ini file every 10 seconds (with a 
TTimer), the file is modified by another application and I display its 
contents in my program.

The problem is the file is locked while the other program is using it 
and aparently TIniFile cannot handle this situation, thus raising an 
"Unable to open file" error. How can I check if the file is locked 
before reading its contents?.

Regards,
-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com




More information about the Lazarus mailing list