[issue7160] Crash when returning a 64-bit char pointer in Python 2.6.3 ctypes
Michael J. Fromberger
report at bugs.python.org
Mon Oct 19 16:50:24 CEST 2009
Michael J. Fromberger <michael.j.fromberger at gmail.com> added the comment:
Thank you for setting me straight.
I see now that I misunderstood the scope of `CFUNCTYPE`, as I was using
it as a general wrapper when in fact it's only needed for callbacks.
Mistakenly, I inferred from reading section 16.15.2.4 of the ctypes
manual [1] that it would be necessary to create prototype wrappers for
calls into the foreign library as well. Obviously that is not the case,
since your described solution works fine.
[1] <http://www.python.org/doc/2.6.3/library/ctypes.html#function-
prototypes>
----------
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7160>
_______________________________________
More information about the Python-bugs-list
mailing list