-
Notifications
You must be signed in to change notification settings - Fork 143
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
lua跟jass大量混用的情况下, lua注册闭包给jass接口会导致崩溃 #197
Labels
Comments
感谢大佬 |
内置lua引擎修复过这个问题了 |
可有解决例子? |
~~ |
2 similar comments
~~ |
~~ |
当jass里有大量code注册到2888表里的数组时 会有resize的操作!这个表能存多少jass啊? lua里传给cj的回调函数算是存到这个表里吗? |
这个问题是脚本层不能解决的,不是你该管的。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如题 亲测过 当jass里有大量的脚本代码 加上lua里也大量注册了 jass回调函数 会导致lua回调崩溃
具体原因是 uintptr_t trampoline_create(uintptr_t callback_, uintptr_t param1_, uintptr_t param2_) 所生成的 jass字节码 在特殊的情况下不准确 而产生的崩溃
我重新用另外一种方式实现 回调, 就解决该崩溃了。
果然这些千奇百怪的坑只有我踩到
The text was updated successfully, but these errors were encountered: