Re: Question about pfDelete and Geodes...

New Message Reply Date view Thread view Subject view Author view

John Rohlf (jrohlf++at++tubes)
Wed, 14 Sep 94 10:17:35 PDT


>
> The Performer programming guide is not 100 % clear on the effects of deleting a
> node.
>
> If I use pfDelete on a Geode, will it automatically delete the GSets and GState
> structures (and recursively delete the structures tied to the GState? (fog,
> for instance)), or do I have to clean everything up myself?
>

When in doubt check man pages since they are always the final word on
Performer functionality. The following states that pfDelete is recursive
and "does the right thing".

     pfDelete frees the memory associated with obj if its reference count is
     <= 0. When an object is freed, it decrements the reference count of all
     pfObjects that it once referenced and will delete any of these pfObjects
     with reference counts that are <= 0. Thus, pfDelete will follow all
     reference chains until it encounters a pfObject which it cannot delete.
     pfDelete returns the following:

     pfDelete is implemented for all IRIS Performer objects except
     the following:
                    pfPipe
                    pfChannel
                    pfEarthSky
                    pfTraverser
                    pfState
                    pfDataPool


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:50:32 PDT

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