Advertisement

memory-leaks

Started by October 04, 2000 11:44 AM
2 comments, last by blebb 24 years, 3 months ago
Any good ways to find memory leaks?
Override the global new and delete.
Advertisement
Right now there is some excellent info with source code on this topic at flipcode


Zeus Interactive
Yeah, the info on flipcode is excellent. I had a pretty bad memory leak in my game about a month ago. I used the technique described on the flipcode article and it worked very well. I was really surprised to see how much memory my program was allocating and not releasing. It''s kind of fun to track everything down and see the "unfreed memory" number drop further and further ...at least to a coding geek like me

It did turn out that there was a memory leak which was the main one causing the problems which couldn''t be detected as defined by the article. I can''t remember exactly what the cause was. But although the technique didn''t point it out directly, it lead me to it.

This topic is closed to new replies.

Advertisement