[PyQt] Reading from empty QDataStream crashes

İsmail Dönmez ismail at namtrac.org
Wed Apr 9 12:44:58 BST 2008


Hi all,

Using Qt 4.3.4 , PyQt4 snapshot from 20071220 , sip 4.7.4 following
example crashes python :

>>> from PyQt4.QtCore import *
>>> a = QByteArray()
>>> b = QDataStream(a, QIODevice.ReadOnly)
>>> b.readString()
zsh: segmentation fault  python

If you write same code using C++ you get an empty string instead which
is more preferable over a crash.

Regards,
ismail

-- 
Never learn by your mistakes, if you do you may never dare to try again.


More information about the PyQt mailing list