Beginning DirectX11 triangle demo will not run at all!

Started by
4 comments, last by Ubermeowmix 10 years, 7 months ago
I have not deviated from the book and checked it over with their source code and I get the same error when I run the tutorial code. It says this should revert to DX10 code if there are any problems. No Idea whats going on. Any Ideas what this means guys?: First-chance exception at 0x75d6c41f in 2Drendering.exe: Microsoft C++ exception: _com_error at memory location 0x0029f330.. '2Drendering.exe': Unloaded 'C:\Windows\SysWOW64\d3d10warp.dll' '2Drendering.exe': Loaded 'C:\Windows\SysWOW64\d3d11ref.dll', Cannot find or open the PDB file First-chance exception at 0x75d6c41f in 2Drendering.exe: Microsoft C++ exception: _com_error at memory location 0x0029f330.. '2Drendering.exe': Unloaded 'C:\Windows\SysWOW64\d3d11ref.dll' c:\2drendering\2drendering\dx11demobase.cpp(121): Failed to create the Direct3D device! hr=S_OK (0x00000000) The program '[5932] 2Drendering.exe: Native' has exited with code -1 (0xffffffff). The Window visibly loads then dies milliseconds later, that is probably just windows init a win32 window though.
If you get near a point, make it!
Advertisement

S_OK means success... post your code, perhaps you just have a mistake in how you handle the result.

It's any of the Beginning directx11 game programming series, if I load any of their downloaded tutorial solutions they all die with the same code. What the hell is going on? I don't know why it's doing it! There's no point in posting the code as it's happening on all of the different non compiled solutions.
If you get near a point, make it!

I don't know what code that is so there's certainly a point in posting it, preferably the shortest one that fails.

The solution is likely in improving the error handling to output a useful error message.

First of all, update your graphics card drivers to the latest version, and then post your GPU and your Windows version here together with the code.

If you're not using the D3D11_CREATE_DEVICE_DEBUG flag when attempting to create the device, use it and see if you get any additional D3D error output in your output window. If you are already using it, try removing it in case you're on Windows 7 with the latest update and using the old DirextX SDK instead of the Windows 8 SDK.

The error messages you posted contain messages about WARP and reference-devices which you probably don't want to be using if your system supports D3D11. It could also be a driver problem.


...as it's happening on all of the different non compiled solutions.

Does that mean that you can download already compiled binaries of the same code that works correctly?

That would increase the likelihood that the problem is with the SDK version or similar.

Does that mean that you can download already compiled binaries of the same code that works correctly?
That would increase the likelihood that the problem is with the SDK version or similar.


Yes it does, i will try the previous ideas when it's not stupid-oclock, thanks for the advice I will see how it goes tomorrow.
If you get near a point, make it!
[quote name="Erik Rufelt" post="5094332" timestamp="1379287907"]
If you're not using the D3D11_CREATE_DEVICE_DEBUG flag, try removing it in case you're on Windows 7 with the latest update and using the old DirextX SDK instead of the Windows 8 SDK.


You nailed it, thanks so much for your help.
If you get near a point, make it!

This topic is closed to new replies.

Advertisement