Subject: [Boost-bugs] [Boost C++ Libraries] #5595: Windows: Cannot write to files which have been mapped to memory in other threads/processes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-06 10:01:54
#5595: Windows: Cannot write to files which have been mapped to memory in other
threads/processes
---------------------------------------------------+------------------------
Reporter: Armin Pies <armin.pies@â¦> | Owner: turkanis
Type: Bugs | Status: new
Milestone: To Be Determined | Component: iostreams
Version: Boost 1.43.0 | Severity: Problem
Keywords: memory mapping, windows |
---------------------------------------------------+------------------------
Windows:
If I try to open a file for writing which has been memory mapped by using
boost::iostreams::mapped_file_source, I get an "Permission denied".
Under Linux (e.g. Ubuntu, openSUSE) there is no problem.
The cause of this behavior seems to be, that mapped_file_impl::open_file
uses CreateFile WIN32 API with the parameter FILE_SHARE_READ instead of
FILE_SHARE_WRITE.
Is this supposed to be like this?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5595> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC