Hi Matevz, do you use TMessage in both cases? Cheers, Fons. Matevz Tadel wrote: > > Hi, > > i have a server accepting messages ... either directly from objects or > passed over over a socket by clients. in first case the TBuffer is in > write mode so i have to do a little magick: > > { > m->SetBufferOffset(2*sizeof(UInt_t)); > m->SetReadMode(); > YarEx(m); > m->SetWriteMode(); // without this line ~TMessage *fixes* > // the fBuffer => exception in delete > delete m; > } > > is there a better way to do it? > > thanx ... > cheers, > matevz > > -- > --------------------------------------------------- > Matevz Tadel, E-mail: Matevz.Tadel@ijs.si > Department of Experimental High Energy Physics F9 > Jozef Stefan Institute, Jamova 39, P.o.Box 3000 > SI-1001 Ljubljana, Slovenia > Tel.: +386-61-177-3674 Fax: +386-61-125-7074 > --------------------------------------------------- -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:31 MET