-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging file locked by nreco #65
Comments
How do you copy log files? You should be able to copy 'active' log file (that is currently in use by the app) if it is opened for 'read'. Take a look at line 219 here where a file logger creates a
|
We are zipping with cabinet.dll from MS. The developer checks how the logging file is opened exactly. I will post the result here. |
Hi, |
Have you tried to specify FILE_SHARE_READ|FILE_SHARE_WRITE ? It's not obvious but this sharing mode is less restrictive than just FILE_SHARE_READ (which does NOT allow other processes to write into the file, therefore you get ERROR_SHARING_VIOLATION). |
bingo! that's it !! |
Hi,
we want to collect all logging files and zip them. If the logging process is running, the logging file is locked so another process is not able to zip it.
That can we do? Stopping the process is not so good.
thx
The text was updated successfully, but these errors were encountered: