Re: Segfault when cloning a used class

From: Alberto Pulvirenti <alberto.pulvirenti_at_ct.infn.it>
Date: Thu, 14 May 2009 09:54:35 +0200


Hi,

in fact the source of this segfault is the Streamer of the mother class. But I don't understand, because these classes contain only primitive nonpointer  data members...

What do you mean with I/O settings?

Thanks, cheers

        Alberto

On Wednesday 13 May 2009 06:25:25 pm Philippe Canal wrote:
> Hi,
>
> The clone method is using the I/O to write and then read back the
> object. The problem is likely
> to be in the default constructor and/or the I/O setting of the members
> that pointers.
>
> Cheers,
> Philippe.
>
> Alberto Pulvirenti wrote:
> > Dear all,
> >
> > I am experiencing a strange thing in a class I implemented.
> > This class inherits from another base class, which in turn inherits from
> > TNamed.
> > The strange thing is that when I invoke the "Clone()" method on an object
> > declared as this class type, this raises a segmentation fault.
> >
> > I was wandering if this can be explained with some known mistakes in
> > class implementation, since I don't really know well how the "Clone()"
> > method works.
> >
> > Thanks, cheers
> >
> > Alberto
Received on Thu May 14 2009 - 09:54:28 CEST

This archive was generated by hypermail 2.2.0 : Thu May 14 2009 - 17:50:02 CEST