[issue14354] Crash in _ctypes_alloc_callback

Joe Rumsey report at bugs.python.org
Tue Mar 20 17:18:13 CET 2012


Joe Rumsey <python at rumsey.org> added the comment:

It's maybe not directly relevant to fixing this, but I worked around it on the project where this came up by redefining dice as (c_int * 4) and col as (c_uint8 * 3) in the union, then using ctypes.cast to get those as pointers to the actual struct.  That seems to work just fine for now.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14354>
_______________________________________


More information about the Python-bugs-list mailing list