Re: [ROOT] Branch problem for inhereted class

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Oct 09 2001 - 10:32:58 MEST


Hi Valeri,

This was a long standing problem with TClonesArray having a class deriving
from an abstract class. The problem should be fixed now in the development
version in CVS.

Rene Brun

Valeri Tioukov wrote:
> 
> Hi rooters,
> 
> Trying to migrate from v2.25 to v3.01 I got a problem in the following
> situation:
> 
> I have tree with branch of the objects type Cclass,
> Cclass contained TClonesArray of objects type Bclass,
> Bclass inhereted from pure virtual class Vclass (and TObject of cause)
> 
> The reading of this tree is failed in case of root v3.01
> 
> If I set "old" style
> tree->SetBranchStyle(kFALSE);
> it works fine.
> 
> I put almoust minimal sample illustrating the problem in the
> http://people.na.infn.it/~valeri/test/test.tgz
> 
> Valeri
> 
> Complete crash session is:
> 
> > make
> > root
> root [0] .L libTest.so
> root [1] .L tree_test.C
> root [2] fill_C_tree()
> a_member=1
> b_member=0
> a_member=2
> b_member=0
> 
> a_member=11
> b_member=100
> a_member=12
> b_member=100
> 
> root [3] read_C_tree()
> 
>  nent = 2
> 
>  *** Break *** segmentation violation
> Root > Function read_C_tree() busy flag cleared



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:02 MET