Bullet runtime error

sky
Posts: 3
Joined: Mon May 12, 2014 7:32 am

Bullet runtime error

Post by sky »

I add Bullet to my project, and when I was running a test in my project, there happened a runtime error, the codes:
btDefaultCollisionConfiguration* collisionConfiguration = new btDefaultCollisionConfiguration();
btCollisionDispatcher* dispatcher = new btCollisionDispatcher( collisionConfiguration );

btVector3 worldAabbMin( -10000, -10000, -10000 );
btVector3 worldAabbMax( 10000, 10000, 10000 );
btBroadphaseInterface* inter = new btAxisSweep3( worldAabbMin, worldAabbMax, 1000 ); //happened a runtime error here
btCollisionWorld* collisionWorld = new btCollisionWorld( dispatcher, inter, collisionConfiguration );
the runtime error is:
Critical error detected c0000374
Windows has triggered a breakpoint in xxx.exe.
This may be due to a corruption of the heap, which indicates a bug in xxx.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while xxx.exe has focus.
what caused it and how should I do to solve it ? Please help,thanks.
Basroil
Posts: 463
Joined: Fri Nov 30, 2012 4:50 am

Re: Bullet runtime error

Post by Basroil »

Any reason why you need to declare the number of handles to something other than the default? Perhaps there's some minimum limit your instance needs to run and you are getting overflows and heap corruption that way.