Jump to content


C++ Memory consumption issue.


4 replies to this topic

#1 xtigr

    New Member

  • Members
  • Pip
  • 3 posts

Posted 29 March 2007 - 06:54 PM

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.

#2 Kenneth Gorking

    Senior Member

  • Members
  • PipPipPipPip
  • 907 posts

Posted 29 March 2007 - 09:02 PM

This memory manager should tell you where it's being leaked.
"Stupid bug! You go squish now!!" - Homer Simpson

#3 xtigr

    New Member

  • Members
  • Pip
  • 3 posts

Posted 29 March 2007 - 09: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.

#4 Kenneth Gorking

    Senior Member

  • Members
  • PipPipPipPip
  • 907 posts

Posted 30 March 2007 - 01:50 PM

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"
"Stupid bug! You go squish now!!" - Homer Simpson

#5 xtigr

    New Member

  • Members
  • Pip
  • 3 posts

Posted 30 March 2007 - 04:55 PM

Great, I'll try this on Monday!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users