The node is gone but not forgotten... segmentation fault

New Message Reply Date view Thread view Subject view Author view

david.heskamp++at++lmco.com
Wed, 23 Oct 96 14:07:52 EDT


Hello:

When I remove a node from my Performer graph, it appears to work and is not
displayed in the resulting scene. However if I then delete the node, I get
a segmentation fault. A code fragment which is short and representative is
given below.

One more item to consider... geodes below the problem node in the graph
were operated on by pfdBreakup. This problem does NOT occur if I do not
use pfdBreakup.
      
     pfFrame(); //dcs and its children are visible here
     pfGroup *group;
     for (int i=0; i < dcs->getNumParents(); i++)
     {
       group = dcs->getParent(i);
       group->removeChild(dcs);
     }
     pfFrame(); //dcs and its children are no longer visible
     pfDelete( dcs );
     pfFrame(); //segmentation fault occurs here!$#++at++%#*$

Any help would be appreciated.

Dave

=======================================================================
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:53:48 PDT

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