Re: Deleting pfGeoSets

New Message Reply Date view Thread view Subject view Author view

Marc Erich Latoschik (marcl++at++TechFak.Uni-Bielefeld.DE)
Tue, 08 Dec 1998 09:33:17 +0100


Joaquin Casillas Melendez wrote:
>
> Hello.
>
> I have created a single pf example that has a pfGeode with one pfGeoSet.
> In each frame, I get the pfGeoSet from the pfGeode, delete it and attach
> a new one. The problem is that the memory doesn't stop growing.
>
> In the main simulation loop I do :
>
> gsetold = geode1->getGSet(0);
> geode1->removeGSet(gsetold));
> pfDelete(gsetold);
> gsetnew = MakeGSet();
> geode1->addGSet(gsetnew);
>
> I have checked that return values of removeGSet and pfDelete functions
> are right. I have also checked that ref value before pfDelete is 0, so I
> think pfDelete should delete the pfGeoSet. But it seems that memory is
> not being freed at all.
>
> Attr lists in the pfGeoSet are created with 'new pfMemory'. I have
> compiled the example with Performer 2.2.
>
Hi,
did you check the return value of pfDelete?
should be TRUE, FALSE or -1 (lol) depending on the success, that might
clarify
what is going on. See the pfDelete man page.

But in fact, i experienced a similar behaviour when deleting a group
node.
It said it was deleted successful, then later, i suddenly got an error
saying that my already deleted node had a ref count > 0 and the
application crashed.
Still don't know what happened. Maybe somebody else could clarify the
pfDelete behaviour.
To me it behaves different then in the documentation...

> I would appreciate any suggestions about deleting the memory in the
> right way.
> Thanks.
>
>
> -----------------------------------------------
> Joaquin Casillas Melendez mailto:jcasilla++at++glup.irobot.uv.es
> LISITT (ARTEC) Phone: +34 6 364 2253
> Dept. Electr. & Informatics Addr: Poligono de la Coma s/n
> University of Valencia Valencia (SPAIN)
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 

bye Marc

******************************************************************************** Marc Erich Latoschik, AG-WBS, Technische Fakultaet der Universitaet Bielefeld

Universitaetsstrasse 25 Postfach 100 131 33501 Bielefeld Raum M4-122 Fon: (0521) 106 2919 Fax: (0521) 106 2962

marcl++at++techfak.uni-bielefeld.de http://www.TechFak.Uni-Bielefeld.DE/techfak/persons/marcl/ ********************************************************************************


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Dec 08 1998 - 00:33:32 PST

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