Hi Primrose,
you should avoid writing unnamed objects into shared memory. Unnamed
objects are stored by their classname so you could try something like:
arr = (TObjArray *) mfile->Get("TObjArray", arr);
to get the array. But this will not work if you have more than one
TObjArray stored in shared memory
Cheers, Fons.
Primrose Mbanefo wrote:
>
> Hello everyone,
> 1.How can I read an object I created and placed in shared memory. This
> object is not named.
> 2.in order to write the above object to shared memory, it's implementaion
> contains the line Add(this). This works but is this the right way to do what
> I want to do?
> Thanks,
> Primrose
--
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 7679480
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:58 MET