On my Linux system QSharedMemory creates a file with the path given by key(). The generated key will be in /tmp. So for setKey("FOO") I get file "/tmp/qipc_sharedmemory_FOOfeab40e1fca77c7360ccca1481bb8 ba5f919ce3a" (a predictable name). If you use setNativeKey() you can explicitly direct the file name and location.
On the same system Boost will look for the specified shared memory block name under /dev/shm. So,
shared_memory_object shdmem(open_only, "FOO", boost::interprocess::read_only);
shared_memory_object shdmem(open_only, "FOO", boost::interprocess::read_only);
To copy to clipboard, switch view to plain text mode
looks for, and fails to find, "/dev/shm/FOO"
I expect that is what is going on with you. However, we are not privy to the behaviours and limits of Boost in your Cygwin environment.
Bookmarks