【发布时间】:2013-05-16 15:55:12
【问题描述】:
我的winforms应用程序快要交付完成了,但是我害怕在我启动应用程序时经常发生FatalExecutionEngineError,调试器将执行指针移动到调用MDIParent from
//program.cs
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MDIParent()); // <--- here debugger returns backs
}
我的应用程序中有几十个表单和类,我无法弄清楚实际问题,非常感谢您的帮助。
错误信息如下图所示: 运行时遇到致命错误。错误地址位于线程 0x804 上的 0x791f5ace。错误代码为 0xc0000005。此错误可能是 CLR 或用户代码的不安全或不可验证部分中的错误。此错误的常见来源包括 COM-interop 或 PInvoke 的用户封送错误,这可能会损坏堆栈。
问候
【问题讨论】:
标签: c# runtime-error