2016-09-14 197 views
2

我有一个WPF项目(C#),当我开始调试时崩溃Visual Studio 2013。我得到一个对话框,说[应用程序] .exe触发了一个断点。有中断和继续选项按钮。如果我选择继续Visual Studio崩溃。如果让我选择休息我可以在主线程/()拆卸断点_NtWaitForSingleObject @ 12:Visual Studio 2013调试崩溃

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第一个add指令。

这是新行为,直到我安装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. 

应用程序正常启动然而,当“不开始调试”被选中。

+0

重新安装vs可能是您想尝试的第一件事 – Steve

+0

收集Visual Studio的崩溃转储并将其发送到[Microsoft Connect](https://connect.microsoft.com/)。 –

+0

继续这个问题,我升级到VS2015,现在不会崩溃,而是提供以下内容: –

回答

0

问题是由注册表项的原因造成的:

HKEY_LOCAL_MACHINE \ SOFTWARE \微软\的Windows NT \ CURRENTVERSION \图像文件执行选项

不知道在那里起源,但最有可能的WinDbg或应用程序验证。