process exited with code -1073741819 (0xC0000005) after calling function in pyd created by pybind11 #4663
Unanswered
zhusihan-python
asked this question in
Q&A
Replies: 1 comment 2 replies
-
i build a debug version pyd file, and got an error Expression: _CrtlsValidHeapPointer(block) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hello, my main GUI process crash after calling function in pyd created by pybind11, the function wrapped by it executed successfully, yet something wrong happened when the pyd exit. the 0xC0000005 indicated memory issues right?
my code is as below:
code in python side like this:
i got my result.txt file, and the return code is success(0), no exceptions are caught, but it crashed when exit

how can i fix this error, or is there an elegant way to exit the pyd library created by pybind11
environments: windows 11 python 3.10.11 pybind11 2.10.4, i build the pyd file with VS 2022

Beta Was this translation helpful? Give feedback.
All reactions