the issue is the code in the app:
It opens the log in fmOpenReadWrite and fmShareCompat mode. fmShareCompat mode and fmShareExclusive work the same way.
They both evaluate to 0: (fmShareCompat = ShareMode[0], fmShareExclusive = ShareMode[1])
(SysUtils.FileOpen)
ShareMode: array[0..4] of...
It's for a logsearch function. I open the log in readonly mode to scan for a search text. While I have it open, the application that uses it as a log should be able to write to it. The app opens the file in fmOpenReadWrite or fmShareCompat... I have updated to use FREE but still it's an issue...
the reading is done w fmOpenRead or fmShareDenyNone the writing is done w fmOpenReadWrite or fmShareCompat.. even if writing is doen w fmOpenReadWrite or fmShareDenyNone still can't open the file for writing while it's being read or even while it's being copied...
I need a solution which opens...
I would like to scan a log file in read only mode w no locking. I have tried with FileStream, AssignFile and even CopyFile. My issue is that there is a process running that needs to write to the file which may be during the time I am reading. I have the file open in fmOpenRead or fmShareDenynone...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.