You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To allow opening files for reading, even when another process has it open for writing, but explicitly allowed reading using its own FILE_SHARE_READ, this call needs to use FILE_SHARE_READ | FILE_SHARE_WRITE (and maybe even also | FILE_SHARE_DELETE).
spirit/include/boost/spirit/home/classic/iterator/impl/file_iterator.ipp
Line 183 in 59515f0
CreateFileA
call usesFILE_SHARE_READ
as sharing mode. This makes this call fail, when the file is already open for writing, as explained at https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea#parameters (seedwShareMode
).To allow opening files for reading, even when another process has it open for writing, but explicitly allowed reading using its own
FILE_SHARE_READ
, this call needs to useFILE_SHARE_READ | FILE_SHARE_WRITE
(and maybe even also| FILE_SHARE_DELETE
).https://bugs.documentfoundation.org/show_bug.cgi?id=158442 was caused by this problem (fixed by patching spirit).
The text was updated successfully, but these errors were encountered: