Hi Daniel,
As suggested in a previous mail, I would appreciate if you could test
your program with 3.03/09. If the symptom that you describe persists,
please send me a small script to reproduce this problem.
I already have your classes Fragment and Event, but not the test
program.
Rene Brun
On Fri, 25 Oct 2002, Daniel Cussol wrote:
> Hi Rene,
>
> >
> > - if calling TClonesArray::Delete instead of Clear solves your leak
> > problem, this means that your Fragment class is allocating objects or
> > arrays dynamically. If you want to take advantage of the TClonesArray
> > you should avoid this as much as possible.
> > Note also that 3.03/09 takes care of this problem.
> >
>
> My Fragment class is very simple. I have joint as attached files the
> sources of the Event and Fragment classes. In my interactive ROOT session,
> I load the libraries by using ACliC (.L Fragment.C+ and .L Event.C+). I do
> not see where the memory is allocated dynamically in the Fragment class.
> Is it when I use the TVector3 object? I have replaced the TVector3 by 3
> doubles in a test, but nothing changes: I still have a memory leak when I
> use the TTreeViewer or if I call TClonesArray::Clear() instead of
> TClonesArray::Delete() in my TSelector. Is there a way to access the
> number of TVector3 objects in the heap? I have tried tu use the
> TObjectTable, but I did not manage to access the informations concerning a
> particular class. Could it be possible to have a mthod like
> TObjectTable::Print("TVector3") where only the informations for the
> TVector3 class is displayed?
> Thanks for your answers
> Friendly
>
>
> Daniel CUSSOL
>
> LPC Caen
> Boulevard du Marechal Juin
> 14050 CAEN CEDEX
>
> e-mail : cussol@in2p3.fr
> Tel : +33-(0)2-31-45-29-73
> FAX : +33-(0)2-31-45-25-49
>
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:15 MET