Crash on Body creation

danharibo

07-12-2008 14:04:03

mChassis = GameManager::getSingleton().getPhysMgr()->getDefaultScene()->createBody<NxOgre::Body>("vehiclebody; cub.1m.mesh",new NxOgre::Cube(1),Ogre::Vector3::ZERO,"mass: 10000, static: false");
(Sorry about the length of that :roll: )
This code causes a crash somewhere in std::tree, here's the full callstack:
> WildCatSim.exe!std::_Tree<std::_Tmap_traits<unsigned int,NxOgre::Container<unsigned int,NxOgre::RenderableActorFactory *>::Containee,std::less<unsigned int>,std::allocator<std::pair<unsigned int const ,NxOgre::Container<unsigned int,NxOgre::RenderableActorFactory *>::Containee> >,0> >::_Lbound(const unsigned int & _Keyval=11588077) Line 1264 + 0x8 bytes C++
WildCatSim.exe!std::_Tree<std::_Tmap_traits<unsigned int,NxOgre::Container<unsigned int,NxOgre::RenderableActorFactory *>::Containee,std::less<unsigned int>,std::allocator<std::pair<unsigned int const ,NxOgre::Container<unsigned int,NxOgre::RenderableActorFactory *>::Containee> >,0> >::lower_bound(const unsigned int & _Keyval=11588077) Line 1004 + 0x10 bytes C++
WildCatSim.exe!std::_Tree<std::_Tmap_traits<unsigned int,NxOgre::Container<unsigned int,NxOgre::RenderableActorFactory *>::Containee,std::less<unsigned int>,std::allocator<std::pair<unsigned int const ,NxOgre::Container<unsigned int,NxOgre::RenderableActorFactory *>::Containee> >,0> >::find(const unsigned int & _Keyval=11588077) Line 978 + 0x10 bytes C++
WildCatSim.exe!NxOgre::Container<unsigned int,NxOgre::RenderableActorFactory *>::has(unsigned int t=11588077) Line 124 + 0x10 bytes C++
WildCatSim.exe!NxOgre::Container<unsigned int,NxOgre::RenderableActorFactory *>::get(unsigned int t=11588077) Line 101 + 0xc bytes C++
WildCatSim.exe!NxOgre::Container<unsigned int,NxOgre::RenderableActorFactory *>::operator[](unsigned int ti=11588077) Line 428 C++
WildCatSim.exe!NxOgre::Scene::createBody<NxOgre::Body>(const NxOgre::VisualIdentifier & vid={...}, NxOgre::Shape * shape=0x028d61e0, const NxOgre::Pose & pose={...}, const NxOgre::ActorParams & a_params={...}) Line 421 + 0x13 bytes C++
WildCatSim.exe!CeLL::CBase_Vehicle::initialize() Line 22 + 0x106 bytes C++