[wxPython-users] using wxImage in C++ python extension
Christopher Barker
Chris.Barker at noaa.gov
Tue Aug 15 10:49:48 PDT 2006
Robin Dunn wrote:
> There is also the wx.Image.SetDataBuffer
> method, which will have the wxImage use the buffer passed in without
> making a copy, but if the buffer doesn't live as long as the image does
> it will likely cause a crash.
Could the reference count of the Buffer object be Py_INCREF() when
SetDataBuffer() is called, then Py_DECREF() when the wx.Image is destroyed?
-CHB
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list