Inserting in a boost::interprocess::map
Hi, I have the following boost::interprocess::map: std::shared_ptr<boost::interprocess::map<size_t,boost::interprocess::managed_shared_memory*> > memoryMap; I insert into the map in the following manner: memoryMap ->insert( std::make_pair (i, new boost::interprocess::managed_shared_memory(boost::interprocess::create_only, "MemoryMap", 128))); Compilation is successful. But there is the following run-time error during insert: "memory access violation occurred at address -----------, while attempting to read inaccessible data" Is there anything missing? Mit freundlichen Grüßen / Best regards Hemanth Choudary M V RBEI/ETA1 Tel. +49 7113423 2875 [cid:image001.gif@01CFEF7A.B28D3180] [cid:image002.gif@01CFEF7A.B28D3180]<https://www.facebook.com/BoschIndia> [cid:image003.gif@01CFEF7A.B28D3180] <https://twitter.com/boschindia> [cid:image004.gif@01CFEF7A.B28D3180] <http://www.linkedin.com/company/bosch-engineering-and-business-solutions?trk=biz-companies-cym>
participants (1)
-
Hemanth Choudary M V (RBEI/ETA1)