Hi All, I'm playing around with TBuffer to try and see how I might implement sessions for Carrot and I can't seem to get the posted TBuffer example to work [ref: Re: [ROOT] TBuffer usage examples From: Rene Brun Date: Mon Apr 22 2002 - 22:43:35 MEST ] $ root ******************************************* * * * W E L C O M E to R O O T * * * * Version 3.02/07 18 April 2002 * * * * You are welcome to visit our Web site * * http://root.cern.ch * * * ******************************************* Compiled for linux with thread support. CINT/ROOT C/C++ Interpreter version 5.15.25, Jan 6 2002 Type ? for help. Commands must be C++ statements. Enclose multiple statements between { } root [0] TBuffer t(TBuffer::kWrite); root [1] h1f= new TH1F("h1f","test",200,0,10); root [2] h1f->Streamer(t); root [3] char *my=t.Buffer(); root [4] t.Length(); root [5] cout << my << endl; @ root [6] cout << t.Length() << endl; 1308 root [7] Shouldn't cout << my << endl; output the buffer? What am I doing/got wrong? Thank you Ashley Cambrell
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:51 MET