[Qt-interest] [OT] RE: Antwort: Re: Writing file.
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Wed Apr 8 18:28:17 CEST 2009
Markus Franke wrote on Wednesday, April 08, 2009 1:47 PM:
> Hello,
>
> sorry if this is a little bit off-topic here.
>
> qt-interest-bounces at trolltech.com schrieb am 08.04.2009 13:08:44:
>
>> Simply try closing
>> the file at the end of your function or call flush() to force the
>> data to be written to disk.
>
> Does a call to fflush() really ensure the data to be written to
> disk???
I was wrong also, off course it is fsync() which tells the OS to pass along the buffered data to the harddisk controller (which on its turn might still buffer the data for as long as it thinks it is necessary) - but I have a good excuse, I confused fflush() with glFlush() (which indeed causes the buffered OpenGL commands to be executed).
;)
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list