Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost-Users][interprocess]ERROR_ACCESS_DENIED when removing a message_queue
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2009-04-07 18:42:48


Steven Watanabe wrote:
> AMDG
>
> I suspect that the problem is that in the second case you are trying to
> remove a message queue which you still have a handle to. In the
> first case, mq1 goes out of scope.
>
> In Christ,
> Steven Watanabe

Thanks Steven,

Just a note: In Boost to 1.39 windows will get the same behaviour as
unix (you can remove in-use shared memory or named objects), so I hope
portability will be increased. This in-use removal has been implemented
using native NT system calls, so that the in-use file is renamed and
marked as deleted when the last handle is closed. Attached processes
will continue working in the resource until the last handle is closed,
just like in UNIX.

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