开发者

How to remove a Mutex on WinXP

We have a Mutext in our C# .Net Application created by following statement:

new Mutex(true, "MutexName", out pobjIOwnMutex);

Actually we have no problem with it, but since a while the Application can not take the ownership of this mutex anymore. This 开发者_JAVA百科happens only on my developer pc. If I change the mutex name it is no problem, so I assume that the mutex still exists somewhere in the system.

Is there a way to release this mutex in the system, or could there be another reason which this happens?

Thanks for help, Enyra


Is a previous instance of the program running? Have you checked for handle leaks? Try using a tool such as Process Explorer to see if any processes have a handle open to that mutex.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜