Skip to content

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

New issue

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

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

Already on GitHub? # to your account

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();
}
}

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant