Visual Studio 2013 调试崩溃
Visual Studio 2013 debug crash
我有一个 WPF 项目 (C#) 在我开始调试时崩溃 Visual Studio 2013。我收到一个对话框,显示 [application].exe 已触发断点。有中断和继续的选项按钮。如果我选择继续 Visual Studio 崩溃。如果我选择 Break,我会到达 Main Thread/_NtWaitForSingleObject@12():
中的反汇编断点
77C60223 ?? ??
77C60224 ?? ??
77C60225 rol byte ptr [eax],0
77C60228 add byte ptr [ebx+0CC204C4h],al
77C6022E add byte ptr [eax+2B8h],dl
77C60234 add byte ptr [ebx],dh
77C60236 leave
中断发生在 77C60228 的第一条加法指令上。
这是我安装 Windows 7 SDK 和 运行 WinDbg 后才开始的新行为。 WinDbg 仍将启动 运行 应用程序,但不会 Visual Studio。应用程序 运行 在正常启动时很好(除了我试图找到的错误)。这个问题不会发生在每个项目上,只会发生在我尝试用 WinDbg 调试的那个项目上。
我正在尝试学习 WinDbg,但我不想失去 Visual Studio 调试功能。我快要疯了。感谢任何帮助。
针对此问题,我升级到 VS2015,现在不会崩溃,而是提供以下内容:
Managed Debugging Assistant 'FatalExecutionEngineError' has detected
a problem in 'C:\Users\sculleb\Documents\Visual Studio 2015
\Projects\GOOSETest\bin\x86\Debug\GOOSETest.exe'.
Additional information: The runtime has encountered a fatal error.
The address of the error was at 0x72e31e51, on thread 0x2598.
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.
The application starts normally however when "Start without debugging" is selected.
问题是由以下注册表项引起的:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image 文件执行选项
不确定它们的来源,但很可能是 WinDbg 或 Application Verifier。
我有一个 WPF 项目 (C#) 在我开始调试时崩溃 Visual Studio 2013。我收到一个对话框,显示 [application].exe 已触发断点。有中断和继续的选项按钮。如果我选择继续 Visual Studio 崩溃。如果我选择 Break,我会到达 Main Thread/_NtWaitForSingleObject@12():
中的反汇编断点77C60223 ?? ??
77C60224 ?? ??
77C60225 rol byte ptr [eax],0
77C60228 add byte ptr [ebx+0CC204C4h],al
77C6022E add byte ptr [eax+2B8h],dl
77C60234 add byte ptr [ebx],dh
77C60236 leave
中断发生在 77C60228 的第一条加法指令上。
这是我安装 Windows 7 SDK 和 运行 WinDbg 后才开始的新行为。 WinDbg 仍将启动 运行 应用程序,但不会 Visual Studio。应用程序 运行 在正常启动时很好(除了我试图找到的错误)。这个问题不会发生在每个项目上,只会发生在我尝试用 WinDbg 调试的那个项目上。
我正在尝试学习 WinDbg,但我不想失去 Visual Studio 调试功能。我快要疯了。感谢任何帮助。
针对此问题,我升级到 VS2015,现在不会崩溃,而是提供以下内容:
Managed Debugging Assistant 'FatalExecutionEngineError' has detected
a problem in 'C:\Users\sculleb\Documents\Visual Studio 2015
\Projects\GOOSETest\bin\x86\Debug\GOOSETest.exe'.
Additional information: The runtime has encountered a fatal error.
The address of the error was at 0x72e31e51, on thread 0x2598.
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.
The application starts normally however when "Start without debugging" is selected.
问题是由以下注册表项引起的:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image 文件执行选项
不确定它们的来源,但很可能是 WinDbg 或 Application Verifier。