TMapfile::Update causes segmentation violation

From: Burt Holzman (burt@nanalpc.phy.uic.edu)
Date: Tue Jul 20 1999 - 17:50:57 MEST


Hi Rooters,

The following simple macro causes a segmentation violation if I
uncomment 
the mfile->Update line. This is ROOT 2.22/09, CINT 5.14.8.

-B

--
{
  TH1S *monhisto = new TH1S("eventnr","event_nr",101,-0.5,100.5);
  TH1S *monhisto2 = new TH1S("eventnr2","event_nr2",101,-0.5,100.5);

  mfile = TMapFile::Create("onhistos.map","RECREATE",
10000000,"blabla");
  mfile->Add(monhisto,"eventnr"); 
                  
  for (Int_t i = 0; i < 52; i++) { monhisto->Fill(i); } 
  monhisto2->Add(monhisto,monhisto2);
  //mfile->Update(monhisto);

  mfile->Close();
  monhisto2->Draw();
}



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:36 MET