[ODE] Access Violation error

Mohamed Matar Mohamed.Matar at gmx.de
Mon Jun 13 20:53:01 MST 2005


I was trying to change setting for a Box object and I got these error
messages. One when I select run and the other when I select Step into
debugging. The first error is "The instruction at .... Referenced memory at
.... The Memory could not be read". I get this error when I run the code.
When I step into the code, I get the following message "Unhandled exception
in exe file (ode.dll) Access violation

Help Please

Here is the part of code that cause this error. When I comment it, the code
works


zzz=0-(thickness/2)+(thickness/(2*SubDiv));
dBodyGetRelPointPos(obj[ID].body ,0,0,zzz,results);

dBodySetPosition (obj[ID].body,results[0],results[1] ,results[2]);
dBodySetQuaternion (obj[ID].body, rot);
dBodySetLinearVel(obj[ID].body,lvel[0],lvel[1],lvel[2]);
dBodySetAngularVel(obj[ID].body,avel[0],avel[1],avel[2]);

dBodySetData (obj[ID].body,(void*) ID);
dMassSetBox (&m,DENSITY,lengths[0], lengths [1], lengths[2]/SubDiv);
obj[ID].geom[0] = dCreateBox (space,lengths[0], lengths [1],
((lengths[2])/SubDiv)); int k; for (k=0; k < GPB; k++) { if
(obj[ID].geom[k]) dGeomSetBody (obj[ID].geom[k],obj[ID].body); }
dBodySetMass (obj[ID].body,&m); dBodyEnable(obj[ID].body);



More information about the ODE mailing list