[ODE] Help using ODE with DirectX

Jon Watte hplus-ode at mindcontrol.org
Thu Aug 26 09:45:33 MST 2004


The code probably crashed when trying to use the 
pointer later, because it points to the stack, but 
would be used as if it was an array of potentially 
thousands of vertices.

Cheers,

			/ h+


-----Original Message-----
From: ode-bounces at q12.org [mailto:ode-bounces at q12.org]On Behalf Of Kaya
Memisoglu
Sent: Thursday, August 26, 2004 8:34 AM
To: ode at q12.org
Subject: Re: [ODE] Help using ODE with DirectX


>
> Here's a quote directly from common.h:
>
> typedef dReal dVector3[4];

Oh, anyway the assignment in the loop was incorrect IMHO. It
took the address of temp and put it into verticesODE:
> 	verticesODE = &temp;

On the other hand, I still don't understand how this mistake
can make the app crash, because (at least in the code snippet)
the program did (mistakenly) never access the content pointed
to by (the ill pointer) verticesODE.

Maybe the FVF doesn't match the layout of the "Vertex" struct
in the code?

Kaya

_______________________________________________
ODE mailing list
ODE at q12.org
http://q12.org/mailman/listinfo/ode




More information about the ODE mailing list