Archives July 18, 2013
ctypes + PyBuffer?
Written by
on
in
Snaking.
Chris Barker asked about having a PEP 3118 format handler for PyOpenGL. I've played around with this in the past, but always wound up with segfaults due to apparent double-free operations when using ctypes to do buffer work. Basically, once I GetBuffer() into a buffer the deallocation of the buffer struct in ctypes seems to ...