Read access violation for memory mapped vector in debug mode
While attempting to use boost::interprocess for storing a std::vector in a memory mapped file, I am getting the exception Exception thrown: read access violation. when I try to push back on a loaded vector, but only in debug mode . This minimal example code (written by @sehe) is retrieved from https://stackoverflow.com/a/29602884/2741329 , and it crashes on MSVC14 in debug mode and executed more than once: #include <boost/interprocess/managed_mapped_file.hpp> namespace bi = boost::interprocess; int main() { std::string vecFile = "vector.dat"; bi::managed_mapped_file file_vec(bi::open_or_create