Jump to content
  • Advertisement
Sign in to follow this  
DragonBooster

DX11 DirectX SDK DX10/DX11 Sample tutorials keep crashing?

This topic is 2104 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

Hi guys.

 

I have encountered a problem when i was trying to compile and run one of microsoft's DirectX 10/11 tutorials which are located in: C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Samples\C++. I am on a 64 bit machine but i am developing for 32 bit.

 

The DX9 Tutorials work fine and have no problem, its just the DX10/11 Tutorials. After Tutorial 0 which shows you how to create a window, the other tutorial which initializes D3D, opens for a while and immediately closes. In other Tutorials the same happens and i also sometimes get the "failed to create D3D device!" error.

I noticed that i also get this error in VS 2010 Output log :

First-chance exception at 0x7721c41f in Tutorial01.exe: Microsoft C++ exception: _com_error at memory location 0x0034f04c..
First-chance exception at 0x7721c41f in Tutorial01.exe: Microsoft C++ exception: _com_error at memory location 0x0034f04c..

I just started learning DirectX and i do not know what this error means.

 

These are the additional Dependecies in their samples:

d3d10.lib
d3dx10d.lib
d3dx9d.lib
dxerr.lib
dxguid.lib
winmm.lib
comctl32.lib

On VS 2010 i am running on Debug as well. If anyone could help i would appreciate it a lot.

 

My graphics card is a Nvidia Geforce 660 GTX which is a DX11 Class card so i do not think it is hardware related.

Edited by DragonBooster

Share this post


Link to post
Share on other sites
Advertisement

If you have the Windows SDK 8.x installed, be sure you are not mixing the legacy SDK with the windows 8.x SDK (which also contain the DirectX libraries and headers).

Share this post


Link to post
Share on other sites

Currently the platform toolset i have set in VS 2010 is Windows 7.1 SDK. i am using the DirectX June Sdk 2010 so which Windows SDK do i use DirectX 10/11 with?

Edited by DragonBooster

Share this post


Link to post
Share on other sites

indows sdk  7.x should work fine with directx sdk.

 

It could be a driver bug, I can run every single sample of the legacy dx sdk under my pc (W8.1 x64, amd radeon hd 6900 series cayman).

 

Do you have a dual gfx system (ie: igp + 660 gtx)? Be sure you are running those samples with the nvidia card.

 

EDIT: be sure you installed the "Direct X Debug Runtime". If not, re-install the legacy DirectX SDK and check for debug runtimes.

Edited by Alessio1989

Share this post


Link to post
Share on other sites

How do i install the Debug Runtime? I Unistalled and installed the SDK twice and i still dont have the debug runtime.

Edited by DragonBooster

Share this post


Link to post
Share on other sites

When installing the DirectX SDK, you can choose what components to install. If you select all components, you will install the debug runtimes too.

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!