Jump to content
  • Advertisement
Sign in to follow this  
Ubermeowmix

DX11 Beginning DirectX11 triangle demo will not run at all!

This topic is 2136 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites

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.

Edited by Erik Rufelt

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
[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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!