Sign in to follow this  

stop debugging in directx app

This topic is 1958 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 using visual studio, i have the normal method called render() in the program code were i draw things, sometimes the code is wrong there.
So as an example , the code of the rendrer() makes the program get into an infinite loop and then i have to stop debugging by clicking the blue square(stop debugging) and not by closing the window.
I have the normal method to release the 3Ddevice with all the buffers, layouts, rendertargets...and its only called when you press the close window button. So when i press the stop debugging button does all those things created in the 3D device get released? Edited by lomateron

Share this post


Link to post
Share on other sites
but then why do i have to have a method that releases all those things created in the GPU? if the OS will clean them. I though when you press the stop debugging button all resources created in the CPU will be realeased because its a CPU debugger, but the ones created in the GPU will stay and I will get more and more GPU memory full of junk as i debug in visual studio.

Share this post


Link to post
Share on other sites
Most people will clean up because it's good practice. If you're making a game, you also want to make sure that you're not leaking memory during the game. So for instance if you load a bunch of textures for level A, and then you want to switch to level B, you want to destroy all of the textures from level A so that you have enough memory for the textures in level B.

Share this post


Link to post
Share on other sites

This topic is 1958 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this