memory leakage using TChains

From: Carlos Osuna <Carlos.Osuna_at_ifae.es>
Date: Wed, 21 Feb 2007 11:51:11 +0100


Hi all,

I have generated a class, named Reco.h, associated to a tree with MakeClass. Then, in my analysis I create a TChain and the corresponding object of the type RecoAna with this tchain.

TChain *reco_ch = new TChain("Reco");
reco_ch->Add(file1);

Reco *myReco = new Reco(reco_ch);

and I perform my analysis without any problem. And now, I want to free up some memory, in order to load more ntuples, but deleting the objects does not seem to free its memory.
i.e. neither "delete myReco" nor "delete reco_ch" free any memory and I end up with a memory leakage.

Has anybody a hint on how could I really remove those objects from the memory?
(Im using root version 5.10 on slc3)

thanks in advance for the help. carlos Received on Wed Feb 21 2007 - 11:51:17 CET

This archive was generated by hypermail 2.2.0 : Wed Feb 21 2007 - 17:50:01 CET