
Previously i was doing in the same way but still getting the same error. I was removing he shared region in process2 only but pblm is still there.Pls can i get any working example doing the same. Process1. storing map<string, int> nad process2 reading it.I will really be thankful to you. Christoph Gysin-3 wrote:
2009/9/25 manish4gupta <manish@synamatix.com>:
How can i solve my pblm? I tried many things but nothing seems to be working.
Calling shared_memory_object::remove("MySharedMemory") removes the whole shared memory where you saved your data. If it gets called before Process2 tries to read it, it will fail with mentioned interprocess_exception.
Just don't remove it in Process1, remove it at the end of Process2.
Chris -- echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org@fr33z3 _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- View this message in context: http://www.nabble.com/How-to-Read-the-stored-memory-map-in-C%2B%2B-tp2550632... Sent from the Boost - Users mailing list archive at Nabble.com.