[ODE] Crash in dBodyDestroy

Adam D. Moss adam at gimp.org
Mon Oct 18 21:51:00 MST 2004


Devrim Erdem wrote:
> The crash happens in the dGeomGetBodyNext (geom) function, the "geom"
> provided from dBodyDestroy to the dGeomGetBodyNext  function has the
> value of 0xdddddddd ( which indicates released heap memory on visual
> c++ ) .

Might this be a cleanupmode issue?  Spaces, by default (and
geomtransforms optionally) recursively destroy the geoms and
subspaces within them automatically when they themselves
are destroyed.  If you are explicitly destroying bodies then
you need to have a policy that ensures that you don't destroy
bodies which were implicitly destroyed -- or turn off the
cleanup flag on your spaces and safely explicitly destroy
everything.

Regards,
--Adam
-- 
Adam D. Moss   . ,,^^   adam at gimp.org   http://www.foxbox.org/   co:3



More information about the ODE mailing list