Nxogrememerydebugger error[SOLVED]

deshan

19-12-2009 07:07:17

Hi
I am getting a strage error. This is not happening always. But some times when I exit the application. The error occus when it reached the following line.

void MemoryDebugger::writeAllocationsToFile(const char* fileName)
{
...
unsigned char c = ((unsigned char*)allocation->_Ptr)[i];
....
}


NxOgre log
-Error -----------------------------------------------------------
From: f:\p4physx\experimental\PhysX_2.8.1_GPU\novodex\SDKs\Physics\src\NpActor.cpp(268)
PhysX error:
PhysicsSDK: NpActor::setLinearVelocity: WriteLock is still acquired. Procedure call skipped to avoid a deadlock!
NxErroCode:A method was called at a time when an operation is not possible
------------------------------------------------------------------


In my application I have set of enemy characters. And I am using a separate thread to handle each and every character physics and movements. But I am make sure threads are stopped before application is closed.

Any idea what may cause this?

EIDT : There is a voting mechanism u may very interesting
http://www.ogre3d.org/forums/viewtopic. ... 56&start=0

spacegaier

08-01-2010 08:46:59

Any idea what may cause this?
No :D ! The error message sounds as if it could be related to your threads, meaning that in one thread, some things are still locked / things are going on, preventing your writeAllocationsToFile() called from another thread to work properly, resulting in a crash since it tries to read out values, currently used by another thread, but that's just a guess...

deshan

08-01-2010 16:08:35

Yes You are right. I have just missed to join the threads after I stopped them. Not a NxOgre related error at all. Thank you for pointing me for that. :)