Cloning of self-implemented subclasses

New Message Reply Date view Thread view Subject view Author view

Stefan Gutapfel (guti++at++hni.uni-paderborn.de)
Sat, 23 Aug 1997 12:59:24 -0600


Hello,

I have implemented a new node class by subclassing the performer node
class pfGroup and adding addtional data member fields and functions.

Creating instances of the new node class (using the "new" operator)
and adding them to the scene graph works quite well. The performer
sample application "perfly" displays the scene without any errors or
warnings.

But when I create an instance and try to create clones by invoking
the inherited method "clone" on it, displaying the scene with perfly
causes a segmenation fault.

I tried to implement a new "clone"-method that copies the additional
data member fields first and then invokes the parent "clone"-method,
but the result was the same (segmanetation fault).

(I compiled the source code on an Indigo2 with IRIX 6.2, Maximum
Impact graphics board and Performer 2.0)

What am I doing wrong ?

Thanks,

Stefan.
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:46 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.