
7 Apr
2009
7 Apr
'09
10:42 p.m.
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