[ROOT] Problem using new Branch() with TString?

From: cstrato@EUnet.at
Date: Fri Jun 08 2001 - 22:00:33 MEST


Dear Rene, dear Rooters

In my first root file I store a tree with one branch that addresses a
class,
which is derived from TNamed, but contains as member variables two
TStrings
and a couple of integer variables. Thus I had to set the splitlevel to
zero
in my first library in earlier versions of root.

My second library creates a new root file and stores a couple of trees
with
branches containing only integers and doubles. However, it accesses the
tree
from the first root file to get some data.

This second library works fine as long as it accessed the first root
file
created with the old Tree::Branch() function. However, now I have
recreated
the first root file, which uses now the new Tree::Branch function (since

I am using now 3.01/02). Now the second library crashes with a
"segmentation
violation".

After setting "Tree->SetBranchStyle(0)" in my first library for the
branch
containing TStrings and integers, everything works fine again. It seems
that
simply setting split=0 in the new Branch() is not enough.

My question now is:
Why do I have to use BranchOld() when my class contains TStrings?

My system: PowerBook running LinuxPPC 2000, root 3.01/02.

Thank you in advance for your help.

Best regards
Christian
----------------------------------
C.h.r.i.s.t.i.a.n  S.t.r.a.t.o.w.a
V.i.e.n.n.a,  A.u.s.t.r.i.a



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