托管调试助手“ FatalExecutionEngineError” [英] Managed Debugging Assistant 'FatalExecutionEngineError'

查看:2565
本文介绍了托管调试助手“ FatalExecutionEngineError”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到以下错误:


托管的调试助手 FatalExecutionEngineError在 C:\Users\中检测到问题\App\App.exe。
附加信息:运行时遇到致命错误。错误的地址在线程0x72bc上的0xf5b029e1处。错误代码为0xc0000005。此错误可能是CLR或用户代码中不安全或不可验证的部分中的错误。该错误的常见来源包括COM-interop或PInvoke的用户封送处理错误,这些错误可能会破坏堆栈。

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.")


推荐答案

更改使用托管兼容模式是在Visual Studio 2015中为我修复错误的原因:

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"

Microsoft博客详细介绍了此设置的作用。

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

这篇关于托管调试助手“ FatalExecutionEngineError”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆