PDA

View Full Version : C++ Memory consumption issue.


xtigr
03-29-2007, 11:54 AM
Hello,
I need some help to trace down which structure may consume too much memory.
Actually what happens is: with every run, starting from, let's say 300-th, program consumes more and more memory (about 30K each time) . There is no memory leak, I checked with different kind of tools. So I'm thinking of some structure (container) just keeps growing without being freed.
Question: Is there any tool that allows to find such a growing structure?
Code base is huge, analyzing code will not help.

Any advice is appreciated.

Kenneth Gorking
03-29-2007, 02:02 PM
This (http://www.paulnettle.com/pub/FluidStudios/MemoryManagers/Fluid_Studios_Memory_Manager.zip) memory manager should tell you where it's being leaked.

xtigr
03-29-2007, 02:07 PM
Thanks for the link.
Unfortunately I couldn't download the manager.
Few more things I should have mentioned before: the software is under Linux using STL libraries.

Kenneth Gorking
03-30-2007, 06:50 AM
Sorry about that, i fixed it :)

It should work fine under Linux and with stl, just make sure you include it AFTER the stl and linux stuff and you will be fine, eg.:

#include <global stuff>
#include "mmgr.h"
#include "your stuff"

xtigr
03-30-2007, 09:55 AM
Great, I'll try this on Monday!