Sorry to bring this up again, but... here's a program of mine to test the TMapFile class. All it does is create the file, as you can see. I compiled it with the command g++ -o new2 new2.cxx -I$ROOTSYS/include `root-config --glibs` -lNew ,using ROOT 3.01/06 on a linux/ecgs machine. If I then fire up rootn.exe and try opening the file with f2=TMapFile::Create("monitor.map") it either seg faults so bad I have to kill the window (when the size above is 1000000), or seg faults when I exit ROOT (when the size is 100000). When I tried 10000 as the file size, nothing happened. Any idea of what's going wrong? I don't think I even need a file that big (~ 1MB), but I'll have to check. Even so... #include <string.h> #include "TMapFile.h" int main(int argc,char* argv[]) { char source[100]; if(argc>=2) strcpy(source,argv[1]); else strcpy(source,"monitor.map"); TMapFile::Create(source,"RECREATE",10000); //tried different sizes return 0; } > > Hi, this is the output of my ROOT session, and I don't get why it > > should crash. If I exit ROOT, and _then_ try to open the file in read-only > > mode, everything is ok. I tried this in ROOT 3.01, 3.02 and 3.03, and got > > the same result. Any idea why? > > There's also this other mapfile I have, which causes a seg fault as > > soon as you try to open it. All I did was create it as below. The problems > > might be related... Cheers, > > > > Atila > > > > > > root [0] f1=TMapFile::Create("file.map","RECREATE",100000) > > (class TMapFile*)0x2bc30008 > > root [1] f3=TMapFile::Create("file.map") > > (class TMapFile*)0x8684530 > > root [2] .q > > > > *** Break *** segmentation violation > > Aborted
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:54 MET