[Boost-bugs] [Boost C++ Libraries] #5694: Cannot use managed_mapped_file to handle a txt file

Subject: [Boost-bugs] [Boost C++ Libraries] #5694: Cannot use managed_mapped_file to handle a txt file
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-07-13 10:08:38


#5694: Cannot use managed_mapped_file to handle a txt file
------------------------------------+---------------------------------------
 Reporter: chmodexplorer@… | Owner: igaztanaga
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: |
------------------------------------+---------------------------------------
 On Windows or Linux, we can map a txt file into the current process'
 address space, and then use those string handling functions with the
 return value (the pointer to the first byte of the content of the txt
 file) to deal with the file. So I wrote such an expression:
 boost::interprocess::managed_mapped_file mmf(
         boost::interprocess::open_only, txt_file_name
 );
 But it throwed an exception when the line 424 in the file
 managed_open_or_create_impl.hpp was executed:
    if(value != InitializedSegment)
       throw interprocess_exception(error_info(corrupted_error));

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5694>
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:07 UTC