Re: Invalid thread state for this thread

2007-05-25 Thread Martin Evans
> Py_EndInterpreter(pInterpreter); > PyEval_ReleaseLock(); > } > > This appears to work fine accept that after around 30-40 invocations I > always get the "Invalid thread state for this thread". ie the app and dll > stay loaded and I click my "run" button

Invalid thread state for this thread

2007-05-24 Thread Martin Evans
(); Py_SetProgramName(szModuleFileName); PyRun_SimpleFile(hScriptFile,m_szActiveScript); PyErr_Clear(); Py_EndInterpreter(pInterpreter); PyEval_ReleaseLock(); } This appears to work fine accept that after around 30-40 invocations I always get the "Invalid thread state for this thread". ie t