Re: Segfault when cloning a used class

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Wed, 13 May 2009 11:25:25 -0500


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 Wed May 13 2009 - 18:26:05 CEST

This archive was generated by hypermail 2.2.0 : Thu May 14 2009 - 11:50:01 CEST