hi and sorry,
i was tired an nervous yesterday,
EVERYTHING IS OK!
(get the address at the CONSUMER -> Set it in the PRODUCER)
martin
On Thu, 2 May 2002, m. schulte-wissermann wrote:
>
> hi rene, fonds and all,
> i too have a problem using TMapFile in a compiled program,
> - i do have : ROOTLIBS := $(shell root-config --new --libs)
> - i do use rootn.exe as the consumer
> - i did various combinations of : TMapFile::SetMapAddress(0x41027000);
> as in the producer program as in the client (CINT)
>
> the producer program runs in it's endless loop, but
> by doing :
> root [0] map = TMapFile::Create("hsimple.map");
> i get an endless stream of :
> Root >
> *** Break *** segmentation violation
> Root >
> *** Break *** segmentation violation
> Root >
>
> which can not be stoped (C-c,C-z,C-q, only kill -9 ...)
>
> what am i doing wrong.
>
> martin
>
> PS: root 3.02.07, suse-linux 7.3, 2x750 PentiumIII
>
> On Thu, 2 May 2002, Rene Brun wrote:
>
> > Hi Christian,
> >
> > When you link your own program using a TMapFile, you must link
> > with libNew.so
> >
> > Rene Brun
> >
> > Christian Vogel wrote:
> > >
> > > Hi,
> > >
> > > currently I'm trying to explore root and I'm stuck at a very
> > > early stage... I'm trying to integrate the shared-memory-examples
> > > from http://root.cern.ch/Tutorials.html into my C++ code.
> > >
> > > The C++ Code I try to use looks like that:
> > >
> > > TMapFile *mf = TMapFile::Create("/dev/shm/test.map",
> > > "RECREATE",100000,"Test mapfile");
> > > TH1F *hpx = new TH1F("histo","This is a histo",4096,0,4095);
> > >
> > > When I use a rootn-session with this code, another rootn-session
> > > can do "mf=TMapFile::Create("/dev/shm/test.map") just fine.
> > >
> > > When I compile a C++ Program with exactly the same code the
> > > other rootn-session *** BREAK ***'s and segfaults.
> > >
> > > Any hints where I should look or what I have done wrong?
> > >
> > > Chris
> > >
> > > --
> > > Is it true that cannibals won't eat clowns because they taste funny?
> >
>
>
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:52 MET