Unable to Abort Context in 2.18.0
Hi, With AngelScript 2.18.0 I'm experiencing problems in aborting the script (i.e. aborting the context). This worked without problems for all previous versions I have used, including 2.17.1. Now, after migrating from 2.17.1 to 2.18.0 the pContext->Abort() function seems to be broken, at least in conjunction with my app (AngelScript is running in a separate worker thread in my app, the UI thread calls pContext->Abort() when the script shall be aborted but pContext->Execute() doesn't seem to return anymore in this case with the new AngelScript version). Has anything been changed here? Many thanks! PS: I'm using Visual Studio 2008 to build both the AngelScript lib and my app.
Hi,
I did some rearranging of the code in asCContext::Execute in order to optimize it a bit, and unfortunately it broke the Abort functionality. But I have fixed it now (as well as added a regression test for this so it won't break by mistake again).
Code changes for the fix (SVN rev 531)
You said that Execute() doesn't return anymore. Does it really not return, or does it return with asEXECUTION_SUSPENDED?
Thanks,
Andreas
I did some rearranging of the code in asCContext::Execute in order to optimize it a bit, and unfortunately it broke the Abort functionality. But I have fixed it now (as well as added a regression test for this so it won't break by mistake again).
Code changes for the fix (SVN rev 531)
You said that Execute() doesn't return anymore. Does it really not return, or does it return with asEXECUTION_SUSPENDED?
Thanks,
Andreas
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement