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); } //------------------------------------------------------
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:40 MET