[ROOT] TMapFile & TTree::Fill

From: PISA COSY (pisa@pisa01.ikp.kfa-juelich.de)
Date: Fri Sep 13 2002 - 11:10:41 MEST


Hello

What is the diffrence beetwen version 3.02/7 and 3.03/8 that the belowe
procedure gives:

*** Break *** segmentation violation

in version 3.03/08 ?

root [0] mfile = TMapFile::Create("pisa.map","RECREATE", 50000, "Memor");
root [1] pisaTree = new TTree("pisaTree","data");
root [2] Float_t tCpSa01;
root [3] Float_t tCpSa02;
root [4] pisaTree->Branch("tCpSa01",&tCpSa01,"tCpSa01");
root [5] pisaTree->Branch("tCpSa02",&tCpSa02,"tCpSa02");
root [6] mfile->Add(pisaTree);
root [7] tCpSa01 = 23;
root [8] tCpSa02 = 25;
root [9] pisaTree->Fill()


Arek



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:09 MET