Jump to content
  • Advertisement
nkasseinov

Direct3D help: Window closes immediately upon opening

This topic is 455 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 am a beginner to Direct3d and I was playing around with some of the tutorials on the link below:

https://code.msdn.microsoft.com/windowsdesktop/Direct3D-Tutorial-Win32-829979ef

For about week, I have been working with these tutorials and everything seemed to be running ok. Yesterday, however, all of the programs stopped working, even the ones I didn't touch. What happened was that the window created by the program to display the image would immediately close upon opening. I eventually deleted these files and re-downloaded them from the same link, but the problem persisted. I was wondering if anybody has any ideas as to what is going on here?

 

 

Share this post


Link to post
Share on other sites
Advertisement

Just a guess but are you using a laptop with two gpu's? integrated and a discrete... maybe the programs were using the discrete when it worked, but switched to using integrated and that doesn't support something in dx11.

Also try restarting your computer.

Share this post


Link to post
Share on other sites

If you have multiple GPU's on a laptop then you need to go the long road and enumerate the cards available and check each one for DEVCAPS.  I'm guessing something changed with your default GPU and the integrated one doesn't support something you are using.  Also, code always helps,

.

Share this post


Link to post
Share on other sites

Also check antivirus/firewall might b blocking resources that your program needs. R u getting an exit code?

Share this post


Link to post
Share on other sites

  • 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!