[Poppler-bugs] [Bug 69597] New: CreateFile fails with ERROR_SHARING_VIOLATION

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Sep 20 03:15:23 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=69597

          Priority: medium
            Bug ID: 69597
          Assignee: poppler-bugs at lists.freedesktop.org
           Summary: CreateFile fails with ERROR_SHARING_VIOLATION
          Severity: normal
    Classification: Unclassified
                OS: Windows (All)
          Reporter: Thomas.Freitag at alfa.de
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: unspecified
         Component: general
           Product: poppler

Created attachment 86175
  --> https://bugs.freedesktop.org/attachment.cgi?id=86175&action=edit
CreateFile with FILE_SHARE_READ | FILE_SHARE_WRITE

On Windows 64 bit the CreateFile function fails with ERROR_SHARING_VIOLATION if
only opened with FILE_SHARE_READ, see i.e.
http://us.generation-nt.com/createfile-returning-error-sharing-violation-help-28503972.html,
This can happen even if noone else has opened the file. Even if we don't want
to write, we need to open it with FILE_SHARE_READ | FILE_SHARE_WRITE. The
attached patch solves it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20130920/206550cb/attachment.html>


More information about the Poppler-bugs mailing list