Re: [ROOT] Memory leak or desired behavior?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Sep 29 2001 - 08:08:17 MEST


Hi Glen,

This is hopefully the expected behaviour. You should delete t
in your loop.

Rene Brun

On Fri, 28 Sep 2001, Glen R. Salo wrote:

> The following snip of code creates 1001 TH1F's and 3003 TAxis's on the
> heap.  I did not expect this behavior?  Am I doing something wrong?
> 
> TFile f("Event.root")
> TTree *t = (TTree *)f.Get("T")
> for (Int_t i=0; i<1000; i++) t->Draw("fNtrack","","goff");
> gObjectTable->Print();
> 
> I am running the latest CVS on a RedHat 7.1 PC.
> 
> Thanks,
> 
> Glen
> 



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