Re: [ROOT] TMapFile crash (again)

From: Atila Alves Neves (Atila.Alves.Neves@cern.ch)
Date: Mon May 27 2002 - 15:41:59 MEST


    I just noticed at the end that the procedure should be reversed if the
consumer process was bigger, and my applications now run fine. Thanks for
the pointer. It's a rather cryptic method, though. Is this always needed,
or only for large mapfiles? Is there anyway to determine which process is
bigger except by trial-and-error? Thanks, anyway, as this is one less
headache I have now. Cheers,

Atila

On 27 May 2002, Fons Rademakers wrote:

> 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