malloc failure

acropole

19-07-2008 13:11:57

Hi,

I load a mesh with this code :

NxOgre::Resources::ResourceSystem::getSingleton()->addMeshAs("file://../media/models/baseVille01.mesh", "villeCollision");
NxOgre::Resources::Mesh* collisionMesh =
NxOgre::Resources::ResourceSystem::getSingleton()->getMesh("villeCollision");
NxOgre::Actor* collisionActor = mXScene->createActor ( "Collision Mesh",
new NxOgre::TriangleMesh(collisionMesh),
Vector3(0, 0, 0), "static: yes");


but there is a memory allocation failure in createActor() :

void *malloc(NxU32 size)
{
m++;
return ::malloc(size);
}


size = 83926791

which is obviously a random number.

bunny2015

10-08-2008 06:34:44

me too!
some one can help us?

bunny2015

10-08-2008 07:27:49

Sorry!
The answer is in the message "'21 NXS meshes problem thread - Huge success"

betajaen

10-08-2008 10:52:55

Yep. It's this post in that thread.