derived classes from performer nodes

New Message Reply Date view Thread view Subject view Author view

Anita Kishore (kishore++at++aimnet.com)
Fri, 8 May 1998 14:00:21 -0700 (PDT)


Hi:

        Can someone tell me if the foll. derivation is valid in
performer (version 2.2):

        class XXX : public pfDCS, public YYY
        {

                public:
                    XXX() {}
                    virtual ~XXX() {}

        }

        class YYY
        {
                    public :
                    YYY() {}
                    virtual ~YYY() {}
        }

I am having trouble deleting the scene graph containing a node of type
XXX in the DBASE process. My program crashes with dbx showing the crash
at "virtual ~XXX() {}" in the call to 'realfree()'. Purify gives
FMM (freeing mismatched memory) at this line. I haven't overriden the
'new' and 'delete' operator for class XXX coz' it will anyway be
allocated in shared memory due to pfDCS as its parent , so the DBASE
process should be able to access its instance. The actual program is
based on the above class hierarchy with some data members which I make
sure are in shared arena (pfGetSharedArena()).

Thanks for any insight.
-anita
kishore++at++triavest.com
=======================================================================
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:57:23 PDT

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