Jump to content

  • Log In with Google      Sign In   
  • Create Account

DirectX SDK DX10/DX11 Sample tutorials keep crashing?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
7 replies to this topic

#1 Zero_Breaker   Members   -  Reputation: 367

Like
0Likes
Like

Posted 13 January 2014 - 05:32 AM

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, 13 January 2014 - 07:00 AM.


Sponsor:

#2 Alessio1989   Members   -  Reputation: 1999

Like
0Likes
Like

Posted 13 January 2014 - 09:13 AM

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).


"Software does not run in a magical fairy aether powered by the fevered dreams of CS PhDs"


#3 Zero_Breaker   Members   -  Reputation: 367

Like
0Likes
Like

Posted 13 January 2014 - 12:21 PM

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, 13 January 2014 - 12:30 PM.


#4 Alessio1989   Members   -  Reputation: 1999

Like
0Likes
Like

Posted 13 January 2014 - 12:39 PM

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, 13 January 2014 - 12:45 PM.

"Software does not run in a magical fairy aether powered by the fevered dreams of CS PhDs"


#5 Zero_Breaker   Members   -  Reputation: 367

Like
0Likes
Like

Posted 13 January 2014 - 12:56 PM

Thanks, i will try that and i am running on my Nvidia GTX 660 and not on IGP.



#6 Zero_Breaker   Members   -  Reputation: 367

Like
0Likes
Like

Posted 13 January 2014 - 02:43 PM

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, 13 January 2014 - 03:07 PM.


#7 Alessio1989   Members   -  Reputation: 1999

Like
0Likes
Like

Posted 13 January 2014 - 05:53 PM

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


"Software does not run in a magical fairy aether powered by the fevered dreams of CS PhDs"


#8 Zero_Breaker   Members   -  Reputation: 367

Like
0Likes
Like

Posted 13 January 2014 - 05:59 PM

Thanks.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS