Boost logo

Boost Users :

Subject: [Boost-users] Inserting in a boost::interprocess::map
From: Hemanth Choudary M V (RBEI/ETA1) (HemanthChoudary.MV_at_[hidden])
Date: 2014-10-24 05:10:37


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_at_01CFEF7A.B28D3180]

[cid:image002.gif_at_01CFEF7A.B28D3180]<https://www.facebook.com/BoschIndia> [cid:image003.gif_at_01CFEF7A.B28D3180] <https://twitter.com/boschindia> [cid:image004.gif_at_01CFEF7A.B28D3180] <http://www.linkedin.com/company/bosch-engineering-and-business-solutions?trk=biz-companies-cym>




image001.gif
image002.gif
image003.gif
image004.gif

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net