Re: irrBullet 0.1.8 - Bullet physics wrapper
Posted: Fri Jun 07, 2013 3:40 pm
Hey,
I've been trying to get irrBullet working in my project but my program keeps crashing whever I try to create the bullet world. I'm not if the cause is just my bad code, or not linking to irrBullet correctly or something completely different.
Here's the code that crashes:
It crashes and complains about trying to access a null pointer:
I tried using the debugger and it pointed to this line in bulletworld.cpp when the program crashes:
I am using Visual C++ 2010 and linking to the libraries that came with the download. I'm also going to add that i've tried compiling and running in debug and release mode, and I get a number of weird linker warnings when I compile, i have a feeling they have something to do with it:
(Compiling in Release mode)
I've been trying to get irrBullet working in my project but my program keeps crashing whever I try to create the bullet world. I'm not if the cause is just my bad code, or not linking to irrBullet correctly or something completely different.
Here's the code that crashes:
Code: Select all
irrBulletWorld* b = createIrrBulletWorld(engine->getDevice(), false, debug_draw);
I'm pretty sure that engine->getDevice() works because I use it in lots of other parts of my code with no errors, and i'm quite sure that engine points to something valid.Access violation reading location 0xffffffff.
I tried using the debugger and it pointed to this line in bulletworld.cpp when the program crashes:
Code: Select all
printf("irrBullet %i.%i.%i\n", IRRBULLET_VER_MAJOR, IRRBULLET_VER_MINOR, IRRBULLET_VER_MICRO);
(Compiling in Release mode)
Thanks for reading, hope someone can help!Generating code
1> Finished generating code
1>irrBullet.lib(softbody.obj) : warning LNK4049: locally defined symbol ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z (public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)) imported
1>irrBullet.lib(softbody.obj) : warning LNK4049: locally defined symbol ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ (public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)) imported
1>irrBullet.lib(softbody.obj) : warning LNK4049: locally defined symbol ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z (public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)) imported
1>irrBullet.lib(bulletworld.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'irrBullet.lib(bulletworld.obj)' or at 'C:\Users\Pedro\Documents\Visual Studio 2010\Projects\ExploreGame\Release\vc90.pdb'; linking object as if no debug info
1>irrBullet.lib(collisioncallbackinformation.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'irrBullet.lib(collisioncallbackinformation.obj)' or at 'C:\Users\Pedro\Documents\Visual Studio 2010\Projects\ExploreGame\Release\vc90.pdb'; linking object as if no debug info
1>irrBullet.lib(collisionobject.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'irrBullet.lib(collisionobject.obj)' or at 'C:\Users\Pedro\Documents\Visual Studio 2010\Projects\ExploreGame\Release\vc90.pdb'; linking object as if no debug info
1>irrBullet.lib(collisionshape.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'irrBullet.lib(collisionshape.obj)' or at 'C:\Users\Pedro\Documents\Visual Studio 2010\Projects\ExploreGame\Release\vc90.pdb'; linking object as if no debug info
1>irrBullet.lib(irrbullet.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'irrBullet.lib(irrbullet.obj)' or at 'C:\Users\Pedro\Documents\Visual Studio 2010\Projects\ExploreGame\Release\vc90.pdb'; linking object as if no debug info
1>irrBullet.lib(irrbulletcommon.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'irrBullet.lib(irrbulletcommon.obj)' or at 'C:\Users\Pedro\Documents\Visual Studio 2010\Projects\ExploreGame\Release\vc90.pdb'; linking object as if no debug info
1>irrBullet.lib(liquidbody.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'irrBullet.lib(liquidbody.obj)' or at 'C:\Users\Pedro\Documents\Visual Studio 2010\Projects\ExploreGame\Release\vc90.pdb'; linking object as if no debug info
1>irrBullet.lib(motionstate.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'irrBullet.lib(motionstate.obj)' or at 'C:\Users\Pedro\Documents\Visual Studio 2010\Projects\ExploreGame\Release\vc90.pdb'; linking object as if no debug info
1>irrBullet.lib(physicsdebug.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'irrBullet.lib(physicsdebug.obj)' or at 'C:\Users\Pedro\Documents\Visual Studio 2010\Projects\ExploreGame\Release\vc90.pdb'; linking object as if no debug info
1>irrBullet.lib(raycastvehicle.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'irrBullet.lib(raycastvehicle.obj)' or at 'C:\Users\Pedro\Documents\Visual Studio 2010\Projects\ExploreGame\Release\vc90.pdb'; linking object as if no debug info
1>irrBullet.lib(rigidbody.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'irrBullet.lib(rigidbody.obj)' or at 'C:\Users\Pedro\Documents\Visual Studio 2010\Projects\ExploreGame\Release\vc90.pdb'; linking object as if no debug info
1>irrBullet.lib(softbody.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'irrBullet.lib(softbody.obj)' or at 'C:\Users\Pedro\Documents\Visual Studio 2010\Projects\ExploreGame\Release\vc90.pdb'; linking object as if no debug info