IrrNewt Init problem

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
dybalabj
Posts: 6
Joined: Mon Oct 29, 2007 6:42 pm

IrrNewt Init problem

Post by dybalabj »

Here's a weird one (at least to me). I have the following declaration to init the physics in my code:

Code: Select all

irr::newton::IWorld* physics_world = irr::newton::createPhysicsWorld(device);
I've included IrrNewt.hpp, and I have the #pragma comment lines for Irrlicht.lib and IrrNewt.lib. The dll files for IrrNewt and Newton are in the same directory as my source code. I am using Visual Studio 2005 Standard Edition. When I try to run my code, it fails at the above line with the following error:

Runtime Error!
R6025
- pure virtual function call

However, all the examples I've looked at use the exact same syntax I have above (except they use p_world instead of physics_world), so it appears that createPhysicsWorld() is a static function of the newton namespace. Any suggestions? I'm confused.

- Dybs
Vsk
Posts: 343
Joined: Thu Sep 27, 2007 4:43 pm

Post by Vsk »

Hi, I've had the same problem.
First at all, irrnewt is compiled with irrlicht 1.1, so if you gonna use it wit irrlicht 1.3.1 you must recompiled the dll and the .lib. or donwload the dll y lib that I post at the irrnewt post (at page 18). It is already compiled for 1.3.1.
Besides that, you must be sure that there is no old dll over there, I think that was my problem (I already forgot it), make sure of that, delete every irrnewt .dll old (in the case you recompiled) and use the one recompiled.
Afterwards, I don't now, as I said I just forget what exactly was the thing that caused this problem but after I made the clean of old dlls , it get solved.
Make a try and tell me.
Vsk.
Post Reply