Boost C++ Libraries: Ticket #11568: Memory mapping with Boost version 1.57 https://svn.boost.org/trac10/ticket/11568 <p> Hi, </p> <p> I am using Visual studio 2013 and boost library version 1.57. </p> <p> I am using boost::interprocess namespace for mapping file's contents in memory. </p> <p> I am using it in the following way: </p> <p> m_fileMapper = new boost::interprocess::file_mapping((m_strInputFileName-&gt;getStringValue()).c_str(), boost::interprocess::read_only); </p> <p> m_pixelRegion = new boost::interprocess::mapped_region(*m_fileMapper, boost::interprocess::read_only, m_FileHeader.<a class="missing wiki">PixelStartPos</a>); </p> <p> Here (m_strInputFileName-&gt;getStringValue()).c_str() will give the file which will be mapped to the memory. </p> <blockquote> <p> m_FileHeader.<a class="missing wiki">PixelStartPos</a> will give the position of the pixel in the file. </p> </blockquote> <p> But when I execute this it throws an exception of type "boost::interprocess::interprocess_exception" </p> <p> and the error code is 3, which is for "Access denied", even though the file is writable. This will happen when mapping the region. </p> <p> It works correctly with Visual studio 2010 and boost version 1.48 </p> <p> Kindly let me know how to solve this problem. </p> <p> Thanks &amp; regards, Ravi Appaji </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11568 Trac 1.4.3 Jeff Trull <edaskel@…> Sat, 22 Aug 2015 20:02:43 GMT component changed; owner set https://svn.boost.org/trac10/ticket/11568#comment:1 https://svn.boost.org/trac10/ticket/11568#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Ion Gaztañaga</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">interprocess</span> </li> </ul> Ticket