Hi Damir,
In 3.01/02, we switched the default branch style to the new branches.
I realize that there is a side effect in case:
- your class has a member not derived from TObject (like TArrayF)
- and you use the old Streamer.
You can have your program working by changing one of the two options below
(or both):
- Use the old branch style via TTree::SetBranchStyle(0);
- or in your LinkDef file, use the option "+, ie replace your line
#pragma link C++ class VFrCondition;
by
#pragma link C++ class VFrCondition+;
I will modify the class TStreamerInfo to take into account such situations.
Rene Brun
Damir Buskulic wrote:
>
> Hi,
>
> I have a code that breaks in 3.01/02 and not in 3.00/06 :
>
> There is a class containing a TArrayF (this is a simplified version):
>
> class VFrCondition : public TNamed
> {
> private :
> TArrayF mVar; // Values of variables relevant to this
> condition
> ClassDef(VFrCondition,1) // Condition (trigger, sms,...) object for a
> frame
> }
>
> When I try to run this code, which tries to write a tree of objects of
> type VFrCondition, I get :
>
> ERROR, Streamer is null
> TArrayF mVar offset= 80 type=62 Values of variables
> relevant to this condition
>
> repeated many times. This code works with the previous version of ROOT,
> I checked there were no changes in the generated dictionary file, and
> the libCore library contains the same symbols.
>
> Is it a bug or a feature ?
>
> Cheers
>
> Damir
> --
> =====================================================================
> | Damir Buskulic | Universite de Savoie/LAPP |
> | | Chemin de Bellevue, B.P. 110 |
> | Tel : +33 (0)450091600 | F-74941 Annecy-le-Vieux Cedex |
> | e-mail: buskulic@lapp.in2p3.fr | FRANCE |
> =====================================================================
> mailto:buskulic@lapp.in2p3.fr
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:45 MET