Jump to content
  • Advertisement
Sign in to follow this  
ongamex92

D3D11CreateDevice freeze

This topic is 796 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've just bought a new laptop with nVidia 960M in it (and of course the intel graphics with the CPU...)

When I run my code (it happens when I'm attached with a debugger) I get a freeze in D3D11CreateDevice call with around 10% chance.

That code worked perfectly fine for more that 3 years on my AMD 5550 and AMD 7770 (and i think x1600pro)?

Does anyone have any ideas?

 

EDIT:
I'm working on window 7

Edited by imoogiBG

Share this post


Link to post
Share on other sites
Advertisement

If you pass in the debug flag when creating the device do you get any warning/error messages?

 

I remember I had a bug where running the debugger with a D3D9 game (years ago!). Not closing down correctly would occasionally leave the device in an unhappy state, causing it to fail during subsequent creation calls. I've not seen anything like that since though.

 

T

Share this post


Link to post
Share on other sites

FYI: You may need to add your executable to the 3D graphics list in the Nvidia driver and force it to use dedicated graphics for the 960M.

 

I'm not saying this is why it freezes, just a heads-up.

Share this post


Link to post
Share on other sites
If you pass in the debug flag when creating the device do you get any warning/error messages?

It freezes with and without that flag.

BTW. It also happens with glChosePixelFormat (a bit rearely I suppose).

 

I will change my driver (upgrade or downgrade).
 

You may need to add your executable to the 3D graphics list in the Nvidia driver and force it to use dedicated graphics for the 960M.

I'll give it a try thanks!

Share this post


Link to post
Share on other sites

I'm not sure what did the trick for me, but after removing UpdateWindow call (after CreateWindow) I haven't had any freezes.

Edited by imoogiBG

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!