[ODE] Running ODE in a thread

Vrej Melkonian vmelkon at yahoo.com
Mon Nov 21 20:43:04 MST 2005


I tried running ODE in a separate thread (using
_beginthread) but it crashed after a couple of seconds
into the simulation.

I'm using ODE 0.5, compiled as a DLL, VC++6,
multithreaded DLL, debug version

ode\src\step.cpp, 

//****************************************************************************
// an optimized version of dInternalStepIsland1()

void dInternalStepIsland_x2 (dxWorld *world, dxBody *
const *body, int nb,
			     dxJoint * const *_joint, int nj, dReal
stepsize)


At the line

// no feedback is required, let's compute cforce the
faster way
MultiplyAdd1_8q1 (cforce + 8*b1->tag,JJ,
lambda+ofs[i], info[i].m);

where b1 is 0x00000000

Any ideas?


		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com


More information about the ODE mailing list