Re: [PyQt] Reading from empty QDataStream crashes

2008-04-09 Thread Phil Thompson
On Wednesday 09 April 2008, İsmail Dönmez wrote: > 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: segmenta

[PyQt] Reading from empty QDataStream crashes

2008-04-09 Thread İsmail Dönmez
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