|
Boost Users : |
From: Alex Markelov (talamar.lands_at_[hidden])
Date: 2008-06-06 07:03:10
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