[Qt-interest] Huge memory consumption

Michael user23 at web.de
Thu Jul 8 10:58:29 CEST 2010


Am 07.07.2010 11:42, schrieb James Matta:
> Hello all,
> I am using a QFile within to read a bunch of raw binary data. Each
> file is a couple gigabytes. When I am running the program on a test of
> a single file I notice the memory consumption climbs into a gigabyte
> of physical memory and a little less of virtual memory consumed.
>
> A cursory glance through my code does not reveal any immediately
> apparent memory leak. So I guess my question is this:
>
> Do I need to do something to the QFile as I read the data (I read 16kb
> chunks) to tell it not to use data that it had previously buffered? or
> do I need to go on a memory leak witch hunt with valgrind?
> --
> James Matta
> University of Notre Dame
> Physics Department

Hello James,

maybe your are searching for
QIODevice::Unbuffered    =>   Any buffer in the device is bypassed

Hope this helps
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100708/3dafc4d0/attachment.html 


More information about the Qt-interest-old mailing list