Jump to content
  • Advertisement

Archived

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

weasalmongler

Memory Leaks

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

Hello, I was wondering if anyone knew a good program or a good way of checking for memory leaks in a program. I want to check my program and dont fancy logging every allocation and deallocation of memory Any help is much appreciated, thanks. - James

Share this post


Link to post
Share on other sites
Advertisement
Most leak checking methods are language and/or compiler specific. Mentioning, at least, which programming language you are using might be a good idea.

Share this post


Link to post
Share on other sites
I am using C for the programming. That means i cannot overload the new and delete operators (which is a shame). So thanks for the help, but does anyone know a way to do it for C ?

EDIT : Oh, and MSVC++ 6.0 for compiler.

- James

[edited by - weasalmongler on May 21, 2004 7:33:18 PM]

Share this post


Link to post
Share on other sites
Look up MSVC''s C runtime library debug functions. In particular: _CrtDumpMemoryLeaks(), _CrtMemDifference(), _CrtMemCheckpoint() and _CrtSetDbgFlag(). Your compiler documentation should have a basic tutorial on how to use these functions.

Share this post


Link to post
Share on other sites

  • 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!