Re: Help needed wrt apparent memory leak in IRIS Performer 2.2

New Message Reply Date view Thread view Subject view Author view

Joshua Shagam (jshagam++at++d-a-s.com)
Fri, 20 Aug 1999 13:09:41 -0400


Acosta, Mark W wrote:
>
> I believe your error is assuming that pfGSetAttrList deletes the old
> attribute list. It doesn't.
> This is from the c++ man page from pfGeoSet.
>
> If attribute and index lists are allocated from the pfMalloc routines,
> pfGeoSet::setAttr will correctly update the reference counts of the
> lists. Specifically, pfGeoSet::setAttr will decrement the reference
> counts of the old lists and increment the reference counts of the new
> lists. It will not free any lists whose reference counts reach 0.
>
> So, you'll have to get the old list, set the new list, and pfDelete the old
> list.
>
> I feel your pain. It can be really hard to find things in the Performer man
> pages. Good luck.

Ah, many thanks. I thought it might be something like that, but I
couldn't find that bit of the documentation that stated that it doesn't
free any 0-refcount lists.


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Fri Aug 20 1999 - 10:12:17 PDT

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