Hi Jose, This is the expected behaviour. When closing a file, all histograms associated with this file (I mean histograms created when the TFile f object is the current directory) are automatically deleted when the file is closed. See chapter on objects ownership in the Users Guide. Rene Brun On Fri, 19 Sep 2003, Jose Caballero wrote: > hello: > > > I have the following program > > > TFile f("filename"); > TTree *T = (TTree *) f.Get("treename"); > TSelector *s = TSelector::GetSelector("Selector.C+"); > T->Process(s); > > > OK. In the Selector I draw some histograms. > > If I terminate my program with > > f.Close() > > then the last plot is deleted. If I don't include the sentence f.Close() > the program ends without problems. > Why? > > Regards, Jose Caballero. >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET