In an application I’m making, sometimes exceptions that are thrown but unhandled, seem to disappear into thin air and cause strange bugs with the GUI.
I’ll usually find it by stepping through until reaching the line where the exception is thrown, at which point Visual Studio immediately stops stepping and returns to the application.
It’s an IRC app so it’s heavily event-driven by the async socket connection. Not sure if that is relevant.
I don’t have any empty catch blocks anywhere or anything like that.
Apparently this is a known bug with x64 machines.
The bug and a workaround is on Microsoft Connect.
Edit:
If anyone is interested in the cause, this was posted when the bug was closed: