[ODE] Unexpected NULL values in DLL version

Clay Larabie Clay Larabie" <clay at larabie.net
Sat Sep 7 12:30:02 2002


This is a multi-part message in MIME format.

------=_NextPart_000_000E_01C25683.46789F90
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have compiled ODE as a dll by creating a new Win32 Dynamic Link =
project, and adding all the necessary .cpp and .h files from ODE, =
including the new TriList code.

Now, when I create a Win32 application that uses the above dll, and use =
the test_boxstack example, I am getting NULL values or uninitialized =
values unexpectedly. For example, in Box Stack, none of the boxes are =
being rendered because the dBoxClass global variable is not valid... =
instead of dBoxClass being a value of 1, it is -36476 or whatever.

Also, in another app, where I am using TriList and Boxes, nearCallback =
(void *data, dGeomID o1, dGeomID o2)... both o1 and o2 are being passed =
as NULL.

Has anyone experienced this?

Both ODE and OpCode2 are being compiled as MultiThreaded DLL and the =
apps that call them are compiled as MultiThreaded.

Anything I'm doing wrong?

Clay







------=_NextPart_000_000E_01C25683.46789F90
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I have compiled ODE as a dll by =
creating a new=20
Win32 Dynamic Link project, and adding all the necessary .cpp and .h =
files from=20
ODE, including the new TriList code.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Now, when I create a Win32 application =
that uses=20
the above dll, and use the test_boxstack example, I am getting NULL =
values or=20
uninitialized values unexpectedly. For example, in Box Stack, none of =
the boxes=20
are being rendered because the dBoxClass global variable is not valid... =
instead=20
of dBoxClass being a value of 1, it is -36476 or whatever.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Also, in another app, where I am using =
TriList and=20
Boxes, nearCallback (void *data, dGeomID o1, dGeomID o2)... both o1 and =
o2 are=20
being passed as NULL.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Has anyone experienced =
this?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Both ODE and OpCode2 are being compiled =
as=20
MultiThreaded DLL and the apps that call them are compiled as=20
MultiThreaded.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Anything I'm doing wrong?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Clay</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</DIV>
<DIV><BR><BR></DIV></FONT><FONT face=3DArial size=3D2></FONT>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_000E_01C25683.46789F90--