|
Boost Users : |
Subject: Re: [Boost-users] How to Read the stored memory map in C++
From: manish4gupta (manish_at_[hidden])
Date: 2009-09-27 14:23:11
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_at_[hidden]>:
>>
>> 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_at_fr33z3
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> 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-tp25506320p25636156.html Sent from the Boost - Users mailing list archive at Nabble.com.
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