Jump to content
  • Advertisement
Sign in to follow this  
paulecoyote

Freebie Memory Leak Tool for VS C++ 6?

This topic is 4997 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, we've got a large legacy application at work thats leaking memory a bit. I was just wondering if anybody has any free alternitives to BoundsChecker for Visual Studio 6 (or I suppose 2003 but we've not converted the project because it's a bit nasty). We all have fully licenced VS 2003 Enterprise Edition too, and it may be that something already exists in there that we're missing. At the moment the project is in VS C++ 6 though, and would be a real pain to convert (because it's not your normal project). We've found a neat program that's helped a bit called "Debuggy", but something that lets you step in and out of source code files as well would be awesome. http://web.vip.hr/inga.vip/index.htm I did do a search on the forum before posting and found nothing relevant, but excuse me if I am repeating something recently posted. Thanks for any links etc! Paul

Share this post


Link to post
Share on other sites
Advertisement
Look up _CrtSetDbgFlag in the MSDN. When the application exits, it lists all the memory that wasn't freed together with its allocation number. Run the program again, this time calling _CrtSetBreakAlloc (<the number reported previously>) and the program will stop when the leaky memory is allocated. You should then be able to quickly determine why it isn't being freed.

Skizz

Share this post


Link to post
Share on other sites
Jan > I cannot access your server, gives me a 403 Forbidden for the link at the top:

http://www.stud.uni-karlsruhe.de/~urkt/mmgr.zip

Cheers,

Paul

Share this post


Link to post
Share on other sites
Quote:
Original post by MENTAL
Flui d Studios Memory Manager

Been using it in all my projects for a very long time and I haven't yet found a bug in it.
Yup, I can recommend this too. Unfortunately, it only works with single threaded applications. If you try using it in a multithreaded app without modifying it to add enter critical sections or something, then you'll get all sorts of weird bugs.

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!