Skip to main content
gamedev.net
🔒 Locked

Investigating Memory

Started by Mat1515 2 replies 250+ views
Original Post
Mat1515
Mat1515
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
Ut o not me again:) lol
Evil Steve
Evil Steve
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.
Mat1515
Mat1515
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?
Ut o not me again:) lol
psykr
psykr
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.