Advertisement Jump to content
Sign in to follow this  

DirectX shuttingdown on failure.

This topic is 838 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, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!