• Advertisement

Archived

This topic is now archived and is closed to further replies.

Memory Leak Detections...

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

Anybody has written functions overriding new and delete to detect memory leaks?

Share this post


Link to post
Share on other sites
Advertisement
Hmmm.

Microsoft have... You get that for free when you make a Debug version of your program in MSVC...

Bung in a #include and the following early in your program:

_CrtSetDbgFlag( _CrtSetDbgFlag(0)|_CRTDBG_LEAK_CHECK_DF );

The CRTDBG stuff has a wealth of useful things for detecting stuff like that.


For more advanced third party stuff, look at BoundsChecker from NuMega

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites
Paul Nettle''s memory manager, from www.flipcode.com Ask Midnight or at http://www.graphicspapers.com

IT''ll do everything you ened in this regard

~~~
Cheers!
Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL

Share this post


Link to post
Share on other sites

  • Advertisement