Re: [info-performer] Leak while loading file

Date view Thread view Subject view Author view

From: Simon Perreault (nomis80++at++nomis80.org)
Date: 06/23/2004 10:16:17


MLM Veraart wrote:
> You must remove a node with a call to pfDelete(pfNode*)
> And you must call pfFrame() within the while loop to delete
> the geometry for real.
> Deletion is delayed a few frames, CULL, DRAW and ISECT may need the nodes.

Thank you for your quick and informative reply. I changed the loop to

     while (1) {
         pfNode* node = pfdLoadFile( "houston_named.3ds" );
         pfFrame();
         pfDelete( node );
     }

and now it creashes after one frame with

Unhandled exception at 0x103c808d in pfdbuildtest.exe: 0xC0000005:
Access violation reading location 0x07151ffc.

What needs to be added to the loop for it to not crash?

Why am I doing this? I am tracking a very obscure bug that manifests
itself exactly as an "Access violation reading location 0xXXXXXXXX." In
my real app I am keeping many builders and calling pfdBuild repeatedly
on them. An access violation happens after a varying amount of time.
Therefore I am trying to isolate the bug.

Thanks.

-- 
Simon Perreault <nomis80++at++nomis80.org> -- http://nomis80.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Jun 23 2004 - 10:17:17 PDT