while the gnu compiler version of root seems to work fine under irix 6.3
and linux. i get the following result
with the version that used the kai compiler (which is the forced
standard in the CDF experiment)
when i use the shared memory tutorial.
root [0] .x hprod.C
Error in <TMapFile::TMapFile>: no memory mapped file capability
available
Error in <TMapFile::TMapFile>: mapped file not in mmalloc format or
already open in RW mode by another process
Memory mapped file: hsimple.map
Title: Demo memory mapped file with histograms
Option: file closed
Mapped Memory region: 0x0 - 0x186a0 (0.10 MB)
then i have another unrelated question. After the creation of the memory
mapped file in the tutorial hprod.C i would like to monitor the
contents of the file but if i add TBrowser like in the example below i
get the an empty TBrowser window which only becomes active when i
interrupt the macro.
Is there a way to open an active browser?
same for the canvas in hcons.C how can i make it active
thanks a lot
hans wenzel
gROOT->Reset();
// Create a new memory mapped file. The memory mapped file can be
// opened in an other process on the same machine and the objects
// stored in it can be accessed.
mfile = TMapFile::Create("hsimple.map","RECREATE", 100000,
"Demo memory mapped file with histograms");
// Create a 1d, a 2d and a profile histogram. These objects will
// be automatically added to the current directory, i.e. mfile.
hpx = new TH1F("hpx","This is the px distribution",100,-4,4);
hpxpy = new TH2F("hpxpy","py vs px",40,-4,4,40,-4,4);
hprof = new TProfile("hprof","Profile of pz versus
px",100,-4,4,0,20);
// Set a fill color for the TH1F
hpx->SetFillColor(48);
// Print status of mapped file
mfile->Print();
TBrowser b ;