[Interest] QFile::write(const QByteArray&) does not write all data?

Thiago Macieira thiago.macieira at intel.com
Thu May 17 16:56:19 CEST 2018


On Thursday, 17 May 2018 07:02:17 PDT alexander golks wrote:
> i have at least compiled 5.6.4 now, but i can not produce the error with my
> qt5core. using 5.6.3 from qt, error exists. using mine, does not exist...
> 
> getting the error code directly after the f.write(data) gives me error code
> 183: ERROR_ALREADY_EXISTS
>     183 (0xB7)
>     Cannot create a file when that file already exists.
> 
> but i assume, that the error is not from the failing WriteFile call. or does
> it?

No, this sounds like the "Not a typewriter" error.
https://en.wikipedia.org/wiki/Not_a_typewriter#Occurrence

> anyone with some more ideas?
> e.g. on how to reproduce or test?

Are you testing on the same machine, same FS? This can be a limitation of the 
OS or hte FS. It could even be a limitation of a virus scanner you may have 
installed.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center






More information about the Interest mailing list