problem with tmapfile

vdschaaf (vdschaaf@kvi.nl)
Thu, 03 Dec 1998 17:29:09 +0100


Hi,

I've problems with using a TMapFile from a simple programme.
If Iin a normal root session I say :

mfile_prod = TMapFile::Create("hsimple.map","RECREATE",50000000,"Demo");

I can connect to it from another session with :

mfile_cons =TMapFile::Create("hsimple.map");

So far so good.
But, if I start a root session with a small programme (see below) I can create
a new TMapFile, but if I try to connect to it from another root session, that
session crasses........

Can anybody help my out?

Thanx!

//--------------------------------------------------
#include "TROOT.h"
#include "TRint.h"

int Error; //left undefined by Motif

extern void InitGui(); // initializer for GUI needed for interactive interface
VoidFuncPtr_t initfuncs[] = { InitGui, 0 };

// Initialize the ROOT system
TROOT root("Rint","The ROOT Interactive Interface", initfuncs);

int main(int argc, char **argv)
{
// Create interactive interface
TRint *theApp = new TRint("ROOT example", &argc, argv, NULL, 0);

// Run interactive interface
theApp->Run();

return(0);
}
//------------------------------------------------------