Boost logo

Boost Users :

From: Alex (talamar.lands_at_[hidden])
Date: 2008-06-06 07:57:57


Sorry, no question - it was a bug in my own code.
All works great!
Thanks,
Alex.

"Alex Markelov" <talamar.lands_at_[hidden]> wrote in message
news:g2b5hb$677$1_at_ger.gmane.org...
> Hello,
> several processes need to communicate using managed_windows_shared_memory
> object::
>
> - "servers":
> managed_windows_shared_memory shm (open_or_create, "MySharedMemory",
> shm_size);
>
> - "clients":
> managed_windows_shared_memory shm (open_only, "MySharedMemory");
>
> "Client" and "server" proceses run sequence may be the following:
> 1) start server 1
> 2) start client 1
> 3) exit server 1
> 4) start client 2 -> oops! interprocess exception thrown: shared memory
> could not be open.
> ...
>
> Why at the moment when last "server" exited the shared memory was
> destroyed?
> Shared memory should exist while at least one user exists.
> At the moment when the last "server" exited, client 1 was existing and
> thus the shared memory should be accessible for opening still.
>
> Regards,
> Alex


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