• Advertisement
Sign in to follow this  

DirectX shuttingdown on failure.

This topic is 571 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:

 

if(lpdikey){

lpdikey->Unaquire();

lpdikey->Release();

}

if(lpdi)

lpdi->Release();

 

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,

 

JoshuaE

Edited by Josheir

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement