Strange stack problems with addRigidBody

SinisterMephisto
Posts: 20
Joined: Tue Sep 01, 2009 4:19 pm

Strange stack problems with addRigidBody

Post by SinisterMephisto »

Hi all
I am relatively new to bullet but twith previous ODE and physX xp and I also think I am a competent enough programmer. (This is the bullet proof). Well I got bullet last week and i ave been able to compile the demo but when I tried the Hello world tutorial it kept throwing exceptions at the addRigidBody function.

Code: Select all

 Unhandled exception at 0x00e4a003 in Test0.exe: 0xC0000005: Access violation reading location 0x5b5c99aa. 
I tried it with v 2.74 and 2.75rc and the results were the same. The funny thing is that Hello world worked the first time but always closed with an error. I am pretry confused and I have spent 2 days messing with enviroment settings i have seen in other examples but to no avail.

Code: Select all

>	Test0.exe!btCollisionWorld::addCollisionObject()  + 0x93 bytes	C++
Any help will be greatly appreciated.

thanks in advance.
SinisterMephisto
Posts: 20
Joined: Tue Sep 01, 2009 4:19 pm

Re: Strange stack problems with addRigidBody

Post by SinisterMephisto »

Ah it was a Dereferencing problem( My first). Fixed by matching environment settings to demo settings. :lol: