From: Simon Perreault (nomis80++at++nomis80.org)
Date: 06/01/2004 08:53:51
Hi,
In writing my own heavily modified 3DS loader, I used the pfdNewGeom()
function to create a new pfdGeom object:
pfdGeom* facet = NULL;
facet = pfdNewGeom(3);
Inspecting the allocated object with a debugger, I see that facet has
been correctly allocated, but its members haven't. For example,
facet->numVerts is 0 and facet->coords is NULL. How is this possible?
As I am working on Windows, I immediatly suspected that something had
gone awry in the shared arena department. Indeed, pfGetSharedArena()
returns NULL. Is that to be expected on Windows? Even if that was a
problem, how does facet get successfully allocated when it is also
allocated on the stack? More troubling: why does numVerts get set to
zero? Debugging with MSVC, I haven't found out how to step into the
pfdNewGeom function, of which I am supposed to have the source.
pfHelp()!
Thanks,
Simon
-- Simon Perreault <nomis80++at++nomis80.org> -- http://nomis80.org
This archive was generated by hypermail 2b29 : Tue Jun 01 2004 - 08:55:33 PDT