Python Ctypes: Access Violation
I am trying to write a Python wrapper for a 3rd-party C DLL. The function WolaInit initializes the library and returns a handle to be used for subsequent function calls. import ct
Solution 1:
Handles are typically implemented as pointers. On 64-bit systems, pointers are 64-bit. On Windows, c_ulong
is 32-bits. I think you are truncating the handle, but without seeing the function prototypes it is only a theory. c_void_p
may be a more appropriate type for the handle.
Post a Comment for "Python Ctypes: Access Violation"