Boost C++ Libraries: Ticket #5595: Windows: Cannot write to files which have been mapped to memory in other threads/processes https://svn.boost.org/trac10/ticket/5595 <p> 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". </p> <p> Under Linux (e.g. Ubuntu, openSUSE) there is no problem. </p> <p> The cause of this behavior seems to be, that mapped_file_impl::open_file uses <a class="missing wiki">CreateFile</a> WIN32 API with the parameter FILE_SHARE_READ instead of FILE_SHARE_WRITE. </p> <p> Is this supposed to be like this? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5595 Trac 1.4.3 armin.pies@… Tue, 07 Jun 2011 19:22:58 GMT <link>https://svn.boost.org/trac10/ticket/5595#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5595#comment:1</guid> <description> <p> It should be FILE_SHARE_READ | FILE_SHARE_WRITE instead of only FILE_SHARE_READ. </p> </description> <category>Ticket</category> </item> <item> <author>Armin Pies <armin.pies@…></author> <pubDate>Fri, 07 Oct 2011 09:15:31 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5595#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5595#comment:2</guid> <description> <p> Still not fixed in Boost 1.47.0. </p> </description> <category>Ticket</category> </item> <item> <author>armin.pies@…</author> <pubDate>Thu, 15 Mar 2012 11:41:28 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5595#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5595#comment:3</guid> <description> <p> Still not fixed in boost 1.49.0 :( </p> </description> <category>Ticket</category> </item> <item> <author>armin.pies@…</author> <pubDate>Fri, 13 Jul 2012 13:55:22 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5595#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5595#comment:4</guid> <description> <p> Still not fixed in boost 1.50.0 :( </p> </description> <category>Ticket</category> </item> <item> <author>armin.pies@…</author> <pubDate>Wed, 06 Feb 2013 12:28:26 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5595#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5595#comment:5</guid> <description> <p> Still not fixed in boost 1.53.0 :( </p> </description> <category>Ticket</category> </item> <item> <author>armin.pies@…</author> <pubDate>Mon, 17 Feb 2014 14:44:52 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5595#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5595#comment:6</guid> <description> <p> Still not fixed in boost 1.55.0 :( </p> </description> <category>Ticket</category> </item> <item> <author>armin.pies@…</author> <pubDate>Thu, 04 Dec 2014 16:36:02 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5595#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5595#comment:7</guid> <description> <p> Still not fixed in boost 1.57.0 :( </p> <p> Patch (diff mapped_file.cpp mapped_file.cpp.org): </p> <pre class="wiki">186c186 &lt; FILE_SHARE_READ | FILE_SHARE_WRITE, --- &gt; FILE_SHARE_READ, 194c194 &lt; FILE_SHARE_READ | FILE_SHARE_WRITE, --- &gt; FILE_SHARE_READ, </pre> </description> <category>Ticket</category> </item> <item> <author>armin.pies@…</author> <pubDate>Thu, 21 Sep 2017 14:00:45 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5595#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5595#comment:8</guid> <description> <p> Still not fixed in boost 1.65.1 :( </p> </description> <category>Ticket</category> </item> </channel> </rss>