Look at http://root.cern.ch/root/html/TMapFile.html#TMapFile:SetMapAddress, May be, it helps. A.Inyakin On Wed, 5 May 1999, Burt Holzman wrote: > Hi, Rooters. > > We are trying to work with TMapFiles here, and I found the following > simple macro causes seg faults if I do not comment out the mfile->Close() > line at the end of the file. Other perturbations such as > monhisto->DrawCopy() have the same behavior. Operations on the copy > after mfile->Close() such as GetBinContent also cause segfaults. > > I doing something wrong, or is there a bug somewhere? > > --- > > { > 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); > mfile->Update(); > } > monhisto2->Add(monhisto,monhisto2); > monhisto2->Draw(); > mfile->Close(); > } > > > > > > >
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:32 MET