[wxPython-users] using wxImage in C++ python extension
Christopher Barker
Chris.Barker at noaa.gov
Tue Aug 15 13:09:24 PDT 2006
Josiah Carlson wrote:
> I should probably clarify a bit.
Thanks. I really hadn't followed that.
> The pointer that buffer b holds points
> to memory that is no longer associated with any array object. It may or
> may not have been freed, which may or may not induce a segfault on
> access.
I understand that better now.
However, if if there is still a reference to the buffer object, is that
memory still good? It looks like it is:
>>> b[0]
'a'
>>> b[5]
'a'
That makes it look to me like the buffer object is responsible for that
memory, and if it's reference count > 0, then is will keep it around.
-Chris
--
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