Share this post

Link to post

Share on other sites

If I understand what you're trying to do, you shouldn't create the array since you already detected an error condition. Instead you should just return null.

On the other hand, the creation of the array shouldn't fail just because you've set an exception on the current context. I'll need to make some adjustments in the CScriptArray add-on to handle this scenario better.

I guess you could check whether the context had an exception before the ctor was called... but then what if the ctor added another exception? Do you have any way to check whether there are now 2 exceptions?

0

Share this post

Link to post

Share on other sites

This topic is 1121 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.