I just dropped in AngelScript 2.23.1 (as replacement for 2.23.0) and now my application crashes when I finally want to release the engine. I'm using VC9 under Win7.
When stepping down starting from the following call
mpEngine->Release();the code line
asDELETE(const_cast<asCScriptEngine*>(this),asCScriptEngine);calls the destructor of the engine:
asCScriptEngine::~asCScriptEngine()The last line of the destructor calls
asCThreadManager::Release();which tries to lock a crit section object:
void asCThreadCriticalSection::Enter()
{
#if defined AS_POSIX_THREADS
pthread_mutex_lock(&criticalSection);
#elif defined AS_WINDOWS_THREADS
EnterCriticalSection(&criticalSection);
#endif
}
The pointer '&criticalSection' is NULL, that's where the code crashes.Any ideas to this?
Many thanks and regards,
Thomas
Edited by Andreas Jonsson, 01 May 2012 - 04:13 PM.






