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 trigger a double-free. Calling ReleaseBuffer() doesn't help, and neither does incref'ing the target object manually. So, anyone successfully used the PEP 3118 functions from ctypes? Anyone want to hit me over the head with a clue-stick as to what simple thing I'm missing in this test module?
Pingbacks are closed.