[ROOT] SegFault Reading an Object from buffer

From: Markus Brehm (brehm@physi.uni-heidelberg.de)
Date: Tue Aug 13 2002 - 15:43:07 MEST


Hello!
I read Histograms (TH1F) from a socket, so I do
if((bytes=sock->Recv(mess))>0){
  histClass=mess->GetClass();
  TObject* helpObj=mess->ReadObject(histClass);
  ...}
I get sometimes (after the code worked fine for several loops) a
segmentation violation at the point where ReadObject is called.
To check what happens in TBuffer::ReadObject, I added a
cout<<"Start"<<endl; as the first statement in ReadObject.
When the program crashes, this message is not displayed.
Any ideas?
I'm using the cvs-version from August, 9th but the problem also occures
with version 3.03.07
On Suse Linux 7.3

Thanks,
	Markus

P.S. Thanks for the quick help with my marker-problem

======================================
Markus Brehm
Physikalisches Institut der Universitaet Heidelberg
Philosophenweg 12
D-69120 Heidelberg
Tel. +49 6221 54 9345
Fax  +49 6221 475733
brehm@physi.uni-heidelberg.de



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:04 MET