Quoting Phil Thompson <[EMAIL PROTECTED]>:
The QImage constructor steals a reference to the uchar *data argument
instead of increasing the reference count of the input string (tested)
or buffer object (untested, but looked into siplib.c).
It is the (not very well documented) responsibility of the Python
programmer to keep a reference to that argument for the lifetime
of the QImage instance to prevent the use of invalid image data.
Bug or quirk?
Feature - it's the same issue that setModel() has.
I have a plan, but it needs a SIP change so it should be in v4.8 (not
v4.7.8).
Thank you! That's my most pressing issue with PyQt ATM: Crashes and
spurious problems because of memory corruption.
Regards,
--
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://www.pdark.de/
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt