Dr. Anton Fokin Division of Cosmic and Subatomic Physics Lund University Sweden ---------- > From: Anton Fokin <kosu_fokin@garbo.lucas.lu.se> > To: roottalk@hpsalo.cern.ch > Subject: TMapFile problem > Date: den 1 April 1999 19:11 > > Hi rooters, > > I've got a problem ... > > I have the following portion of code > > char MapFileName[128]; > sprintf(MapFileName,"/usr/users/marten/udp/client/%s.map",UserName); > MapFile = TMapFile::Create(MapFileName); > MapFile->Print(); > MapFile->ls(); > printf("requesting ADC1.\n"); > TNH1F* h1; > h1 = (TNH1F*) MapFile->Get("ADC1" ,h1); > printf("done\n"); > > which works perefctly within a "small" program but gives segmentation > violation break in somewhat "bigger" version of the consumer. I have also > SetMapAddress in the producer according to instructions to fit the size of > consumer but it doesn't help. I have also put this portion of code right > after TRint *theApp = new TRint("Rint", &argc, argv,0,0); in both > programs but one is crashing all the time while the other stays running. > > Do you have any ideas how to check what's going on? > > Best regards, > > Dr. Anton Fokin > > Division of Cosmic and Subatomic Physics > Lund University > Sweden
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:31 MET