JD wrote:
Nobody? I have played around with the example, and when I force the filename used to open the mapped_file to something like "toto", the example fails! Like if the example would only work on the particular filename used in it. But the filename of the example does not work in my code. I really don't understand what's going on here, can someone help?
Ok... I debugged into the library and found that you have stumbled upon a bug in the code. A prior call is setting the last error which some subsequent logic depends on. At line 198 in mapped_file.cpp. This triggered a recollection... so I searched in the bug database at http://svn.boost.org/trac It turns out this was previously reported as Ticket # 699 where it suggests a solution and some related issues. See: http://svn.boost.org/trac/boost/ticket/699
Subsidiary question: Who is maintaining this library?
No idea.