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

mono 获取函数指针时,发生错误 #32

Open
MY-Git-Li opened this issue Sep 7, 2024 · 0 comments
Open

mono 获取函数指针时,发生错误 #32

MY-Git-Li opened this issue Sep 7, 2024 · 0 comments

Comments

@MY-Git-Li
Copy link
Contributor

错误位置:
static auto Invoke(const std::string& funcName, Args... args) -> Return {
if (address_[funcName] != nullptr) {
try {
return reinterpret_cast<Return(UNITY_CALLING_CONVENTION*)(Args...)>(address_[funcName])(args...); //这里发生错误,funcName =“”mono_compile_method” 无误,args 无误,报错原因:0x00007FFBFEA11A9D (ntdll.dll)处引发的异常: 0xC0000005: 写入位置 0x0000000000000120 时发生访问冲突。
}
catch (...) {
return Return();
}
}

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

No branches or pull requests

1 participant