Boost logo

Boost Users :

Subject: Re: [Boost-users] [interprocess] Lost communications and mysterious names
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2011-05-11 15:20:54


El 10/05/2011 23:18, Roger escribió:
> I'm using boost 1.46 on windows XP and I am having occasional issues
> with interprocess. Sometimes I lose communications between programs.
> I've located the directory where the files that enable the
> interprocess communication are created. Usually the files have the
> name I provide to the managed_shared_memory object in the code.
> However, when the problem occurs a file named something like
> "70C0A8E6490FCC01E55D313B550FCC01" appears. When the programs
> terminate this file disappears, while the normally named files
> persist.

That name is produced when you unlink the shared memory. Code renames
in-use file and marks it as delete-on-close so that it's really erased
when any attached program ends. This emulates unix-like unlink
behaviour. Are you unlinking the shm while in use?

best,

Ion


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