Thomas d'Erceville escribió:
Hello,
In my code I open a mapped file (previously created) and I construct an object inside, this object is valid and I can use it. But after the mapped_file has been destroyed my object is not valid anymore. It happens just after the call to the destructor of the mapped file.
How can I tell to the Mapped File to do not flush its content when it is destructed?
Sorry the long delay, I've been on holidays. I don't understand your question: when the mapped file is destroyed, the address range is unmapped from the process, so you will get a segmentation fault if you try to access the address of your object. That's how memory mapping works, once you unmap it, that address is garbage. Best, Ion
Best regards.
Thomas
------------------------------------------------------------------------
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users