Jump to content
  • Advertisement
Sign in to follow this  

DirectX shuttingdown on failure.

This topic is 750 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, may I get some help please?



For shutting down a game does this look alright using the conditions:









Now what happens if there is an error with the direct input or direct draw setting one of them up and it calls this shutdown, will the Releases (and Unacquire) still always be effective or can the error leave it in a non null state that doesn't release and unaquire properly?



...And if I am working with a bitmap and it fails does my safe delete always work :


SAFE_DELETE { if (p) {delete(p); (p) = NULL;}}


or can it fail in a non null state that doesn't delete properly?


Thank you,



Edited by Josheir

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!