Hi Barton,
I've had a look for you, the problem seems to be caused by the dSpaceDestroy function. This function isn't really necessary here though, because it basically does the same thing as dGeomDestroy does in your CLEAR_ODE() function. Using dGeomDestroy is probably the better way to do it.
Anyway, try this function and see if it works any better...
It seems to work fine here, let us know if you still have problems with MAV's at your end ;)
I've had a look for you, the problem seems to be caused by the dSpaceDestroy function. This function isn't really necessary here though, because it basically does the same thing as dGeomDestroy does in your CLEAR_ODE() function. Using dGeomDestroy is probably the better way to do it.
Anyway, try this function and see if it works any better...
Function CLEAR_ODE () For ode.ODEGeom=Each ODEGeom dBodyDestroy(ode\body) dGeomDestroy(ode\geom) Delete ode Next dJointGroupDestroy(ContactGroup) dWorldDestroy(World) dCloseODE() End Function
It seems to work fine here, let us know if you still have problems with MAV's at your end ;)