Advertisement

Unable to Abort Context in 2.18.0

Started by December 31, 2009 05:49 AM
2 comments, last by Friggle 15 years, 2 months ago
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

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement
Many thanks!

Probably it did return with asEXECUTION_SUSPENDED, yes, it would have had the same effect in my situation...

I'll check out your solution asap.

Cheers and happy new year's celebration!
The solution works.

Many thanks again!

This topic is closed to new replies.

Advertisement