Deleting pfGeoSets

New Message Reply Date view Thread view Subject view Author view

Joaquin Casillas Melendez (jcasilla++at++glup.irobot.uv.es)
Tue, 24 Nov 1998 19:20:51 +0100


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.

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)


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Nov 24 1998 - 10:39:37 PST

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