Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复异常的抛出点被重置;修复方法调用过程中执行了Dispose触发异常处理错误 #222

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Magicqy
Copy link

@Magicqy Magicqy commented Jan 8, 2021

  1. 显式调用throw e会重置异常的抛出点,不方便定位原始异常的位置
  2. 调用函数过程中如果执行到Dispose,使得类成员中的LuaState被提前置空,此时如果再触发异常则Catch中取到的luaState是一个空值,产生新的异常

1. 显式调用throw e会重置异常的抛出点,不方便定位原始异常的位置
2. 调用函数过程中如果执行到Dispose,使得类成员中的LuaState被提前置空,此时如果再触发异常则Catch中取到的luaState是一个空值,产生新的异常
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant