Misuse of geobldr or leak?

New Message Reply Date view Thread view Subject view Author view

From: christopher.g.dorosky++at++lmco.com
Date: 08/19/2000 19:07:36


I was wondering if this is a bug, or my misuse. I am running performer 2.2.6

I can post working source later if this problem is not easily identifiable
or known.

I have a test routine that looks something like this. Excuse the syntax:

void leak (void)
{
 static pfdGeoBuilder *g = pfdNewGeoBldr();
 static pfdtri tri;
 static pfList *list;

for(i=0;i<500;i++){
tri.coords[0][0]=0;
// repeat changing indexes 8 more times

pfdAddTri(bldr, tri);
}
list = pfdBuildGSets(bldr);
for(j=0;j<list->getNum();j++){
  pfDelete(list->get(j));
}
}

Watching gmemusage, this leaks like a sieve. I suspect that I have to delete
the triangles inside the geobuilder, but don't know how. I tried creating
and destroying the builder each time (pfdDelGeoBldr) but it didn't help.

HELP!!!!

Chris

Christopher Dorosky
Lead Electronic Systems Engineer - Real Time Simulation
Lockheed Martin Missiles and Fire Control - Dallas
christopher.g.dorosky++at++lmco.com
972-603-2349


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Aug 19 2000 - 19:07:51 PDT

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