long TClonesArray

Wouter Hulsbergen (s37@nikhef.nl)
Tue, 25 Aug 1998 11:05:00 +0200 (MET DST)


Dear all,

I created a class derived from TClonesArray, say

class B;
class A : public TClonesArray
{
A() ;
A(Int_t n) ;
};

A::A() : TClonesArray() ;
A::A(Int_t n) : TClonesArray("B",n) ;

I now create A object with n B's and save it into a TFile. Problems arise
when reading again the TFile: I get a segmentation fault for n big enough,
say 17 :-). For smaller n everything works just fine. What is happening ?
Is the TClonesArray::Streamer not reserving enough space ?

Regards and thanks,
Wouter