Actors destruction causes NxOgre crash

jcabeleira

06-07-2008 13:49:16

I'm calling nxOgreScene->destroyActor(actor->getName()) to destroy some objects, but when Ogre starts rendering the next frame, it crashes somewhere inside the nxOgre DLL. What is happening?

betajaen

06-07-2008 14:33:06

I saw your post on the main forums. I need more information such as code, logs, setup, version information, etc. Oh and a stack trace would be useful.

jcabeleira

06-07-2008 14:40:58

nxOgre version is 0.9-38
Ogre version 1.4.7

the code used to create bodies is:
getPhysScene().createBody(meshFileName,new NxOgre::TriangleMeshShape(meshFileName),position,"static:yes");

the code used to destroy the bodies is:
getPhysScene().destroyBody(body->getName());

about the log.. is that an html file that is auto-generated in the binaries folder right? If so, then it's almost empty. It contains only information about Ogre and NxOgre versions.

thanks for the help.

betajaen

06-07-2008 14:43:08

Whats the stack say when you debug it? Usually it points to the line causing the crash.

jcabeleira

06-07-2008 14:45:14

True, but in this case it only points to the NxOgre DLL and doesnt says anything else because the DLL has no debug info.

reptor

06-07-2008 17:55:37

Can you not use a debug version of NxOgre then?