[PyQt] Reading from empty QDataStream crashes
ismail at namtrac.org
Wed Apr 9 12:44:58 BST 2008
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)
zsh: segmentation fault python
If you write same code using C++ you get an empty string instead which
is more preferable over a crash.
Never learn by your mistakes, if you do you may never dare to try again.
More information about the PyQt