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

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to