Make sure all you program run in the same logon session as the owner of the
mutex, that is, make sure no-one impersonates when accessing the mutex.
Willy.
"UJ" <fr**@nowhere.com> wrote in message
news:eu**************@TK2MSFTNGP03.phx.gbl...
| It's in stand alone programs. I've got multiple programs trying to write
to
| a log file so I mutex around the writes. That seems to be where the
problem
| lies.
|
| I haven't done anything with security so it should be OK.
|
| "Michael Nemtsev" <ne*****@msn.com> wrote in message
| news:97**********************************@microsof t.com...
| >I recomend look at these threads
| >
http://groups.google.com/group/micro...a3b2ea6976b16d
| >
| >
http://groups.google.com/group/micro...1e34df50df665f
| >
| > BTW, Did u create windows service and use mutex there?
| >
| >>> The thing that is weird is it happens only occasionally. If we restart
| >>> the
| >>> program, it will work.
| >
| > --
| > WBR,
| > Michael Nemtsev :: blog:
http://spaces.msn.com/laflour
| >
| > "At times one remains faithful to a cause only because its opponents do
| > not
| > cease to be insipid." (c) Friedrich Nietzsche
| >
| >
|
|