Original Post
Ok here is an issue I have encountered. I have a script that is running. In this script I call a c++ function. The C++ function gets called and is running fine. Then the c++ function decides to call a script function from the same script that called the c++ function. So the contexts are the same. So when the c++ function calls the script function vsInt32 iResult = m_pcScriptContext->Prepare (iFuncID); I get an iResult = -2 asCONTEXT_ACTIVE; why is this happening it seems like the context I am calling on is already active. Which makes sense since I first called the c++ code from angelscript and now in the c++ code I am calling back to the angelscript code? So it is not possible to do this? ie. script -> C++ -> script? Thanks for anyone that can help me. I am sure that there has to be a solution. Maybe create another context for the second anglescript call from c++? Thanks,