Re: [ROOT] TMapFile crash (again)

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Mon May 27 2002 - 12:49:48 MEST


Please read this:

http://root.cern.ch/lxr/source/base/src/TMapFile.cxx#1065

and call SetMapAddress() in your two line program to map the file in the
correct place so rootn.exe can open it and it won't overwrite shared
libs used by rootn.exe.

Cheers, Fons.



On Mon, 2002-05-27 at 10:14, Atila Alves Neves wrote:
> > Try this and let me know:
> > 
> > g++ -o new2 new2.cxx  `root-config --cflags --new --gibs`
> > 
> > libNew must be the first lib on the link line.
> 
>    I got the same error. I could send you the MapFile the program
> generates if you want, since there's something about it that crashes ROOT
> when it tries to read it. I've also tried it in versions 3.02 and 3.03 as 
> well, and got the same result. I even simplified the program even more, I
> really don't get it. This is all there is to it now:
> 
> #include "TMapFile.h"
> 
> int main(int argc,char* argv[]) {
> 
>  TMapFile::Create("monitor.map","RECREATE",1000000);
> 
>  return 0;
> 
> }
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



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