Finding Memory Leaks

Started by
9 comments, last by Facehat 24 years ago
One thing I''ve done to help track memory leaks was to override the new and delete operators to make them count the number of bytes allocated and deallocated. You may also want to look into creating your own memory manager that allocates memory in large blocks - this way you can help prevent fragmentation (or at least control w/ your own routines) and you simply deallocate all the blocks at the end. Just some ideas...
- Kane THP

"Feed the Children, Save the Whales, Free the Mallocs!"

This topic is closed to new replies.

Advertisement