我想深入了解我收到的错误:
Managed Debugging Assistant 'FatalExecutionEngineError' has detected a problem in 'C:\app.exe'. Additional Information: The runtime has encountered a fatal error... This error may be a bug in the CLR or in the unsafe or non-verifiable portions of the user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack."
我不仅想了解错误本身,还想了解 CLR 可能起作用的内容/方式,而且我从未真正听说过 COM-intercop 或 PInvoke 是 .. 所以对这些进行一些深入了解也会有所帮助。
此外,真正奇怪的部分是,如果我继续通过断点和 不要踏入或越过,我没有看到错误 .但是,如果我逐行遍历,报错 !谁能解释为什么我只在逐步通过时看到它?
不知道还有哪些其他信息会有用……请让我知道(当然很好!)我可以添加什么。
先感谢您! :)
最佳答案
我在 Dotnet Core 项目中遇到了这个问题。我删除了二进制文件并重建,这为我修复了它。简单地执行 Clean and Build 或只是 Rebuild 没有效果。
关于visual-studio - 运行时 fatal error - 可能是 CLR 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5010341/