Managed Debugging Assistant 'FatalExecutionEngineError'

10

I'm getting below error:

Managed Debugging Assistant 'FatalExecutionEngineError' has detected a problem in 'C:\Users\App\App.exe'. Additional Information: The runtime has encountered a fatal error. The address of the error was at 0xf5b029e1, on thread 0x72bc. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.

I get the above error when i execute this statement while debugging.

 LoggerHandler.Info("Executed " & iterations.ToString & " iterations on " & max_processors & " cores in " & Format((Now() - time).TotalSeconds, "0.0") & " seconds.")
debugging
asked on Stack Overflow Jul 16, 2015 by abdul sammad

2 Answers

10

Changing to use "Managed Compatibility Mode" is what fixed the error for me in Visual Studio 2015:

Tools menu >Options > Debugging > General > "Use Managed Compatibility Mode"

enter image description here

This Microsoft blog describes what this setting does in a bit more detail.

answered on Stack Overflow Jan 18, 2017 by JumpingJezza
0

This resolved my issue:

Tools -> options -> IntelliTrace -> General

and check "Events Only" option

answered on Stack Overflow Aug 28, 2018 by sunm • edited Aug 28, 2018 by AymDev

User contributions licensed under CC BY-SA 3.0