Re: [ROOT] Memory Leaks

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Apr 04 2001 - 23:40:06 MEST


Hi Dimitris,
Your numbers are really hard to believe. Could you provide an example ?

Rene Brun

On Wed, 4 Apr 2001, Dr. D. Sideris wrote:

> Dear Rooters,
> 
> I am trying to tie down an application which is written in VC++6 using ROOT and MFC in win NT. I seem to be getting memory leaks in many operations which are associated with canvases. I step through each command in the program with the debugger and watch whether there is an increase in the size of the program that is not reversed when a given process is finished. As an example I open a small canvas with one pad I create a TGraph object with a small array of points and then I perform a fit to those points. The I plot the results. Below are commands which take memory and never return it:
> 
> TPaveLabel *pave = new .... -> 4k
> 
> Graph->GetXaxis()->SetTitle.... -> 200k
> 
> Graph->Fit(...)    -> 348k
> 
> canvas->update   -> 100k
> 
> 
> I'm not hasty to hold root responsible for those leaks, because sometimes there are other inconsitencies in the coding which cause indirectly innocent calls to leak. However because my application doesn't seem to leak anywhere else appart from the neighbourhood of canvases, that narrows it down. If someone has any good advise I'd be gratefull.
> 
> 
> Regards
> 
> Dimitris
> 
> P.S. I use root version 2.25/03
> 



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:41 MET