Boost C++ Libraries: Ticket #3571: mapped_file_source, reopening fails with exception (Windows XP) https://svn.boost.org/trac10/ticket/3571 <p> i can confirm the bug described in this message: </p> <p> <a class="ext-link" href="http://article.gmane.org/gmane.comp.lib.boost.user/23583"><span class="icon">​</span>http://article.gmane.org/gmane.comp.lib.boost.user/23583</a> </p> <p> i.e. the reopening of the mapped_file_source fails with std::exception, what() = "failed mapping view: access denied" is thrown. </p> <p> (here: Windows xp / Mingw gcc 4.2.1 / boost 1.40.0) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3571 Trac 1.4.3 anonymous Wed, 28 Oct 2009 09:42:54 GMT attachment set https://svn.boost.org/trac10/ticket/3571 https://svn.boost.org/trac10/ticket/3571 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">mmap1.cpp</span> </li> </ul> Ticket anonymous Wed, 28 Oct 2009 09:45:57 GMT <link>https://svn.boost.org/trac10/ticket/3571#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3571#comment:1</guid> <description> <p> update: </p> <p> Creating a new instance of mapped_file_source (instead of .open after .close), this works! </p> <p> (so, is it a bug?) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 28 Oct 2009 11:30:21 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3571#comment:2 https://svn.boost.org/trac10/ticket/3571#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> sorry, it's not a bug. </p> <p> a) you cannot map beyond the end of the file (obvious) </p> <p> b) (on windows), apparently you can not map with offset to the last 64k of the file, if they are not completely filled (file ends before complete 64k are filled). </p> <p> so, b was the problem (file was between 64k and 128k large). </p> Ticket