Jump to content
  • Advertisement
Sign in to follow this  
Eralp

Memory leak on reset

This topic is 4001 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, after hours-long search i found a reset method which covers the alt-tab bug. But after resetting the device im loading the textures again -directly-.Should i release them first or they are already released automaticly when the device lost? In my case the code is working great but want to know that if it will cause a memory leak. thanks

Share this post


Link to post
Share on other sites
Advertisement
Technically all resources should be released before a device reset. What you can do is switch to the Debug version of the DX drivers from the DX Control Panel and watch the Output window after a call to Reset. It will list any leaked resources. You can then use the AllocID of the resources combined with the "Break on AllocID" feature (also in the DX Control Panel) to determine where the leaked resources are being created.

Share this post


Link to post
Share on other sites
Quote:
Original post by Zipster
Technically all resources should be released before a device reset. What you can do is switch to the Debug version of the DX drivers from the DX Control Panel and watch the Output window after a call to Reset. It will list any leaked resources. You can then use the AllocID of the resources combined with the "Break on AllocID" feature (also in the DX Control Panel) to determine where the leaked resources are being created.


where is the dx control panel? run->dxdiag?

Can you please explain it,because im new in c++ and also in directx.Just like 1 week hehe

Share this post


Link to post
Share on other sites
oh i found something in "Microsoft DirectX 9.0 SDK (October 2005)\Utilities\Bin\x86" (Dxcapsviewer.exe)

i will try and lets see what i can do :) thanks

Share this post


Link to post
Share on other sites
The control panel is dxcpl.exe, or you can go to Start->All Programs->Microsoft DirectX SDK (%Month% %Year%)->DirectX Utilities->DirectX Control Panel.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!