Jump to content
  • Advertisement
Sign in to follow this  
EbonySeraphim

_CrtDumpMemoryLeak and COM

This topic is 2763 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

Does it detect COM resource leaks? I'm using it in a very simple DirectX11 application I wrote, and even if I fail to release all COM interfaces, it doesn't complain. Is this function supposed to be able to catch those kind of resource leaks or do I have to do something in order to make it work?

Thanks.

Share this post


Link to post
Share on other sites
Advertisement
D3D11 has built-in memory leak detection. Just pass D3D11_CREATE_DEVICE_DEBUG when creating your device, and when your app exists it will print a memory leak report in the debug spew.

Share this post


Link to post
Share on other sites
Just in case this saves me some time: Will it still find leaks with DirectInput8 and other/older DirectX APIs? Are there any other common/likely game APIs that you know of that the debug heap checking functions won't detect resource/memory leaks from?

Thank a lot though. I will definitely try this out when I get home.

Share this post


Link to post
Share on other sites
DX10 works the same way, For DX9, you have to go into the DirectX Control Panel and enable the debug runtimes. I have no idea if DirectInput has any leak detection.

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!