lordmonkey
19-04-2011 21:46:53
Hello,
I got another problem with Critter::RenderSystem. When I try to run this code :
I get an unhandled exception at this piece of code in NxOgreGC.h :
The debugger says that it has a problem with ptr whereas ptr._Pfirst is a NULL pointer.
Any ideas ?
I got another problem with Critter::RenderSystem. When I try to run this code :
// Setup a BodyDescription.
Critter::BodyDescription bodyDescription;
bodyDescription.mMass = 40.0f; // Set the mass to 40kg.
NxOgre::BoxDescription boxDecr = NxOgre::BoxDescription(5,5,5);
Critter::Body* mBody1 = NULL;
mBody1 = mRenderSystem->createBody(boxDecr , NxOgre::Matrix44::IDENTITY, "cube.1m.mesh", bodyDescription);
I get an unhandled exception at this piece of code in NxOgreGC.h :
template<typename T, typename A1, typename A2> inline T* safe_new2(const A1& v1, const A2& v2, const char* file = 0, int line = 0)
{
T* ptr = new T(v1, v2); // -------AT THIS LINE !! -----------
#if NXOGRE_DEBUG_MEMORY == 1
gc_debugger_push_ptr(ptr, sizeof(T), type2id<T>::type_name(), file, line);
#endif
return ptr;
};
The debugger says that it has a problem with ptr whereas ptr._Pfirst is a NULL pointer.
Any ideas ?