Pb. of backward compatibility ?

From: Laurent APHECETCHE (aphecetc@in2p3.fr)
Date: Thu Mar 09 2000 - 11:55:12 MET


Hi,

I'm producing a tiny ntuple with Root V2.23/12 (Linux)

{
  TFile* f = new TFile("ntuple.root","RECREATE") ;
  TNtuple* ntuple = new TNtuple("ntuple","ntuple","r:z:phi") ;
  Float_t r,z,phi ;

  r=z=phi=10.0 ;
  ntuple->Fill(r,z,phi) ;
  f->Write() ;
  f->Close() ;
}

which I can read back (of course) from 2.23/12, but which I can not read
back from a previous version
 of Root (/11,/10,...) : I get a seg. violation :

root [1] TFile f("ntuple.root")
root [2] f.ls()
TFile**         ntuple.root     
 TFile*         ntuple.root     
  KEY: TNtuple  ntuple;1        ntuple
root [3] ntuple.Print()

 *** Break *** segmentation violation

Is it that 2.23/12 is writing trees that are not readable by previous
Root versions (is it advertised somewhere) ? Or am I doing something
obviously wrong ?

Thanks for your help.

-- 
APHECETCHE Laurent (mailto:aphecetc@in2p3.fr) | TAPS/PHENIX/ALICE
SUBATECH-Ecole des Mines de Nantes-4 rue Alfred Kastler-44070 NANTES
cedex 03
TEL (+33/0) 2 51 85 84 17 - FAX (+33/0) 2 51 85 84 24
http://www-subatech.in2p3.fr/~photons -
http://www.phenix.bnl.gov/~aphecetc



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:21 MET