On 19 июл, 21:09, Christian Heimes wrote:
> resurtm wrote:
> > Can anybody explain my errors when trying to pass callback to DLL
> > function?
>
> > Thanks for advices and solutions!
>
> You have to keep a reference to the callback alive yourself. ctypes
> doesn
Hello.
I'm trying to pass to the C function pointer to callback function from
python. But when i'm trying to do this i get access violation within
the DLL file when calling python callback.
Here is the python side code:
from ctypes import *
# ...
class NewtonBody(Structure):
def __init__(sel