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.
精彩评论