Jump to content
  • Advertisement

Archived

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

Mat1515

Investigating Memory

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

Hey, Don''t know if this is possible but is there some type of program i can run while testing that tells me how much memory is allocated and if it is all cleaned up after use? Thanks! Matt

Share this post


Link to post
Share on other sites
Advertisement
I can highly recommend MMGR. It tells you any memory leaks, what size they are and the line they were allocated on. You can also get statistics on the amount of memory currently allocated.

Share this post


Link to post
Share on other sites
So now im just going to include all of these files in my Game Project?

the .cpp 2 .h''s?

Should i copy my main.cpp code and place it after the MM.cpp code?

Share this post


Link to post
Share on other sites
IIRC (haven''t looked at the link), MMGR just needs you to drop the files in. You don''t have to paste your main.cpp code anywhere.

If you''re using some version of Visual C++, there are compiler-specific functions in <crtdbg.h> to help you keep track of allocated memory in debug mode.

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!