Original Post
Hi! Is there a way to Abort() or Release() context (suspended one) without resuming its execution (what engine seemingly does)? The situation is: I have script which runs in almost-infinite :) loop and is executed via ExecuteStep(). So its context remains suspended between polls. When the program quits, context->Release() is called and AngelScript crashes when releasing BSTR instance. Calling context->Abort() prior to Release() does the same. I investigated the problem and found out that context tries to execute some cleanup code on exit. I'm not sure that it is safe - engine is already being shut down and if that code calls any external functions (like BSTR ones) they may crash. So, is there a (safe) way to release the context at once, without any bytecode execution? (However, I feel it is not correct - at least with current AngelScript). If there's no, I think I'll hack the code (for now) just to keep it from crashing :) Cheers, RCL