
Sorry, no question - it was a bug in my own code.
All works great!
Thanks,
Alex.
"Alex Markelov"
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