Advertisement

Memory Leak Detections...

Started by August 04, 2001 03:19 PM
1 comment, last by nosfy 23 years, 6 months ago
Anybody has written functions overriding new and delete to detect memory leaks?
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

Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site

Advertisement
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
~~~Cheers!Brett PorterPortaLib3D : A portable 3D game/demo libary for OpenGLCommunity Service Announcement: Read How to ask questions the smart way before posting!

This topic is closed to new replies.

Advertisement