Jump to content

  • Log In with Google      Sign In   
  • Create Account


D3D10CreateDeviceAndSwapChain fails in debug mode


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
2 replies to this topic

#1 benp444   Members   -  Reputation: 177

Like
0Likes
Like

Posted 15 March 2013 - 05:49 PM

For a few weeks I have been developing only in release mode. I recently switched back to debug mode and found my previously working code failed. I have narrowed down the issue but have found it is not only present in the code I was working on, but all code (test code, old projects, sample code etc) on my machine.

 

The problem is that when D3D10CreateDeviceAndSwapChain is called in debug mode I get an E_FAIL error code (see error box attached). I.e. the code below (taken from a Frank Luna sample) fails:

 

 

    HR( D3D10CreateDeviceAndSwapChain(
            0,                 //default adapter
            md3dDriverType,
            0,                 // no software device
            D3D10_CREATE_DEVICE_DEBUG,
            D3D10_SDK_VERSION,
            &sd,
            &mSwapChain,
            &md3dDevice) );
 

However if I change the 4th argument to 0 everything works.

 

I can only think that either my graphics card is broken or the Direct X SDK or Direct X runtime is somehow corrupt. Has anyone got any suggestions as to what should be my next steps?

 

Ben.

Attached Thumbnails

  • SwapChainErrorMsg.png


Sponsor:

#2 David_pb   Members   -  Reputation: 668

Like
1Likes
Like

Posted 16 March 2013 - 01:06 AM

Is your code still working in release builds? Otherwise this might be a related issue to this http://www.gamedev.net/topic/639532-d3d11createdevice-failed/


@D13_Dreinig

#3 benp444   Members   -  Reputation: 177

Like
0Likes
Like

Posted 16 March 2013 - 03:26 AM

Yup - thats it.
KB 2670838 has stopped debug mode working. The link you pasted above leads on to a more detailed debate, but my solution was to uninstall this update and now everything works fine.

 

Going to switch off automatic updates from now on.

 

Thanks,

 

Ben.






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