[ROOT] Using TMapFile in my C++ Program

From: Christian Vogel (vogel@skunk.physik.uni-erlangen.de)
Date: Thu May 02 2002 - 11:10:34 MEST


Hi,

currently I'm trying to explore root and I'm stuck at a very
early stage... I'm trying to integrate the shared-memory-examples
from http://root.cern.ch/Tutorials.html into my C++ code.

The C++ Code I try to use looks like that:

  TMapFile *mf = TMapFile::Create("/dev/shm/test.map",
                                  "RECREATE",100000,"Test mapfile");
  TH1F *hpx = new TH1F("histo","This is a histo",4096,0,4095);

When I use a rootn-session with this code, another rootn-session
can do "mf=TMapFile::Create("/dev/shm/test.map") just fine.

When I compile a C++ Program with exactly the same code the
other rootn-session *** BREAK ***'s and segfaults.

Any hints where I should look or what I have done wrong?

	Chris


-- 
Is it true that cannibals won't eat clowns because they taste funny?



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