开发者

How to remove a Mutex on WinXP

开发者 https://www.devze.com 2023-01-14 04:14 出处:网络
We have a Mutext in our C# .Net Application created by following statement: new Mutex(true, \"MutexName\", out

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

精彩评论

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