BADF00D / DisposableFixer

This is a Visual Studio Extension and NuGet package that should identify and fix problems as memleaks while using IDisposables.
Other
35 stars 7 forks source link

Creating a Mutex witin a using yield an error #36

Closed dscopra closed 7 years ago

dscopra commented 7 years ago

using (var mutex = new Mutex(true, mutex_name, out _created_new, security)) {
    _mutex_created_event.Set();
    _dispose_event.WaitOne();
    if (_created_new) {
        mutex.ReleaseMutex();
    }
}```
![image](https://cloud.githubusercontent.com/assets/13195823/26238161/354c1db4-3c78-11e7-81ed-43fb15b0f1ec.png)
BADF00D commented 7 years ago

Currently I'm not able to reproduce this issue. Everything seems to work as expected. Please check again.

dscopra commented 7 years ago

Can't reproduce this, too.