Ctypes c_void_p overflow

Joseph L. Casale jcasale at activenetwerx.com
Thu May 5 11:42:10 EDT 2016


I have CDLL function I use to get a pointer, several other functions happily accept this
pointer which is really a long when passed to ctypes.c_void_p. However, only one with
same type def in the prototype overflows. Docs suggest c_void_p takes an int but that
is not what the first call returns, nor what all but one function happily accept?

Anyone familiar enough with ctypes that can shed some light?

Thanks,
jlc


More information about the Python-list mailing list