简体   繁体   English

DirectX诊断模式不适用于Win32(?)

[英]DirectX Diagnostic Mode doesn't work for Win32 ( ? )

I'm working with a DirectX 11 program on Windows 8 for which I Think there is a problem with the vertex shader. 我正在Windows 8上使用DirectX 11程序,因此我认为顶点着色器存在问题。 I tried to start DirectX diagnostic mode ([Alt]+[F5]) and while the program will normally run without throwing an exception if diagnostic mode is turned on it will always crash at the call to "CreateSwapChainForHwnd" with the following error message 我尝试启动DirectX诊断模式([Alt] + [F5]),并且如果打开诊断模式,程序将正常运行而不会引发异常,但在调用“ CreateSwapChainForHwnd”时始终会崩溃,并显示以下错误消息

Unhandled exception at 0x0097C004 in MyApplication.exe: 0xC0000096: Privileged instruction. MyApplication.exe中0x0097C004处未处理的异常:0xC0000096:特权指令。

Does DirectX debugging simply not work for Windows Storeapplications? DirectX调试是否根本不适用于Windows Store应用程序? It seems to work fine in specific Win32 application scenarios, but I seem to be encountering many scenarios where it doesn't work. 在特定的Win32应用程序场景中,它似乎可以正常工作,但我似乎遇到了许多不起作用的场景。

Update: 更新:

Among other things I installed the DirectX debugging symbols and got a marginally more detailed message. 除其他外,我安装了DirectX调试符号,并获得了稍微详细的消息。

Unhandled exception at 0x000007FDED063589 (dxgi.dll) in MyApplication.exe: 0xC0000005: Access violation reading location 0x0000000000000000. MyApplication.exe中0x000007FDED063589(dxgi.dll)处未处理的异常:0xC0000005:访问冲突读取位置0x0000000000000000。

So it looks to be a null reference exception from the code on Microsoft's end. 因此,从Microsoft的代码来看,它似乎是空引用异常。

I think your problem is that the debugger doesn't like CreateSwapChainForHwnd(), as this other guy found out: Requirements for target application for Visual Studio 11's Graphics Debugger 我认为您的问题是调试器不喜欢CreateSwapChainForHwnd(),因为另一个人发现: Visual Studio 11图形调试器对目标应用程序的要求

My code calls D3D11CreateDevice() followed by IDXGIFactory::CreateSwapChain() and the debugger works for desktop win32 apps, so try that. 我的代码调用D3D11CreateDevice(),然后调用IDXGIFactory :: CreateSwapChain(),调试器适用于桌面win32应用程序,因此请尝试这样做。

What are the specific Windows Store application scenarios that you got it to work in? 您可以使用哪些特定的Windows Store应用程序方案? I have the exact opposite problem - I cant get Alt-F5 debugger to work at all for windows store apps, but it works for desktop win32 apps. 我有完全相反的问题-我无法让Alt-F5调试器完全可用于Windows应用商店应用程序,但它适用于桌面win32应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM