Skip to content

Fix win32 C# exception handling when running inside a debugger

commit f56ff479:

gwin32: Do not ignore exceptions when running under a debugger
We're supposed to return `EXCEPTION_CONTINUE_SEARCH` here to tell the
vectored exception handler (VEH) to move on to the next exception
handler instead of skipping them all and trying to continue execution.

Swallowing exceptions messes up CLR exception processing and breaks C#
code. For more details, see:
https://blogs.msdn.microsoft.com/jmstall/2006/05/24/beware-of-the-vectored-exception-handler-and-managed-code/

commit d2cbc803:

gwin32: Do not register a crash handler unless requested

Fixes #2025 (closed)

Edited by Nirbheek Chauhan

Merge request reports