Hi Alexander,
On 5/9/2018 11:09 AM, alexander golks wrote:
hi,
i recently stumbled over this situation, running on windows 7 using qt-5.6.3.
when trying to write ~50MB of data, write does not always complete, the file
does not contain all data,
yet no error is returned.
i always thought, QFile::write(const QByteArray&) is meant to write all data.
as stated in the documentation for: qint64 QIODevice::writeData(const char
*data, qint64 maxSize)
"When reimplementing this function it is important that this function writes all the
data available before returning."
is this a bug in QFile?
have you seen https://bugreports.qt.io/browse/QTBUG-56616 ?
Your problem sounds a bit like it, although the bug should be fixed in
Qt 5.6.3.
Maybe check if you are not still runnign against 5.6.2 by some coincidence.
Best regards,
Steffen Imhof
--
Steffen Imhof
Software Developer
basysKom GmbH
Robert-Bosch-Str. 7 | 64293 Darmstadt | Germany
Tel: +49 6151 870 589 - 0 | Fax: +49 6151 870 589 - 199
steffen.im...@basyskom.com | www.basyskom.com
Handelsregister: Darmstadt HRB 9352
Geschaeftsfuehrung: Heike Ziegler
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest