Unexplained crashes trying to use simple OgreODE demo

Peaz

31-03-2008 20:46:50

Hey, I've recently compiled OgreODE using VC9 but I'm having problems using it with my application. I'm just following the 'first steps with OgreODE' tutorial and for some reason whenever I try to run my application it just crashes unexpectedly with no warnings/errors. I've checked the ogre.log file and there are no errors produced in that. As far as I can tell I've included all the necessary files, names ode/ode.h and OgreOde_Core.h and during compiling I get no linking errors or missing header file errors so I'm at a loss trying to find out whats causing this problem.

I even tried commenting out the code line by line to see if I could narrow down which line is causing the error and it wouldn't even work with just the line:
mWorld = new World(mgr);

I'm really confused as to why this would cause my program to crash as it works fine without the tutorial code but with the header files included. I'd really appreciate if anyone had any idea what the problem might be or any possible solutions, thanks in advance,

Peaz

rewb0rn

01-04-2008 02:17:13

do the samples work?

Peaz

01-04-2008 14:48:28

Yes, sorry should have mentioned that before. The demos are in the same folder as my application's .exe file and they work fine.

Peaz

rewb0rn

01-04-2008 15:06:21

Okay then you should compare your code with the demo code ;)