Hi Thomas, >From an intermediate mail, I see that: - you are using 3.01/06 (not 3.02) - your default constructors create objects See me previous mail to Valery Fine this morning where I indicated the recipee to follow in this case. In your case, declare; TObjArray *fArray; //-> List of Lo/Hi gain Histograms Rene Brun Thomas Bretz wrote: > > Hi all, > > as a read your eMail I remember that I have also trouble with > TObject::Clone(). > > I have two classes: > class A : public TObject { TObjArray *arr; ClassDef(A,1) } and > class B : public TObject { TH1F *hist; } > > The TObjArray holds object of type B. In some cases I call A::Clone() > this worked (I guess until 3.01) But now it doesn't work anymore, I get > an empty TObjArray with 0 entries, so that I had to overwrite the Clone > function. > > Maybe this helps, > Thomas. > > > I am also experiencing problems with the I/O in version 3.02/06. > > Somehow writing of instances of one of my private classes fails with > > 3.02/06 using the new schema evolution, whereas with the old streamer > > method (i.e. no "+" in the Linkdef.h) everything works correctly. > > I get the impression that the problem(s) are related to TObject::Clone(), > > which uses the I/O streamers as far as I understnad. > > I am still investigating things, but I also think that it would be > > better to wait a bit before making 3.02/06 the pro version.
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:11 MET