In a program I accidentally called closeHandle() twice on a mutex handle (closing the handle that was already closed).
When running the code in the debugger, I received the exception error An invalid HANDLE was specified. as expected.
However, running the program “normally” as a stand alone (outside of the debugger) the exception does not appear or any other error. Program appears to run normally.
Is this just a setting in Visual Studio .NET 2003 or is there more behind it?
The documentation states: