Re: [ROOT] Pbms with TMapFile in a compiled program.

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Aug 09 2001 - 12:25:11 MEST


Hi Primrose,

Primrose Mbanefo wrote:
> 
> Hello everyone,
>         The following lines produce a segmentation fault when executed from a
> compiled program which has been linked with libNew.so
> 
> TMapFile *mfile;
> mfile = TMapFile::Create("hsimple.map","RECREATE",100000,"Demo memory mapped
> file with histograms");
> mfile->Print();
> TH1F *hodo;
> hodo = new TH1F("hodo"," Donnees Hodo ",100,0,500);
> hodo->FillRandom("gaus",10000);
> mfile->Update();
> 
> Apparently the last line upsets the program. Does anyone know why?
> 

I cannot reproduce this problem. Could you send (not to the list please)
your test example ?

> And I would also like to know why one needs the instruction:
> TROOT root(.....) in a program.
> 

Since version 3.01, this statement is not necessary anymore. The ROOT
initialisation is now automatic. see release notes.

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:56 MET