[Qt-interest] Too many files open error on Mac OS

Scott Aron Bloom Scott.Bloom at onshorecs.com
Wed Sep 29 09:38:12 CEST 2010


But at each zoom, you are only showing 300 images at different zoom levels right?

Since it sounds like you are having to read them in to show them, why not close them after each rendering and reload them in when necessary...

Scott

-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Serge
Sent: Wednesday, September 29, 2010 12:33 AM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Too many files open error on Mac OS

Storing them in QImage will make the system dead because of not enough 
RAM for it. Some images are 10000x10000 pixels in size. So each file 
stores pyramid of tiles with different zoom levels. And each time, when 
i render, i read only needed tiles from needed level.

29.09.2010 11:28, Scott Aron Bloom пишет:
> Cant you store them inside a QImage??
>
> It just seems to me, running your app will make the system virtually dead since you will be taking up all the available file handles...
>
>
>
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Serge
> Sent: Wednesday, September 29, 2010 12:23 AM
> To: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] Too many files open error on Mac OS
>
> It is images, rendered inside SVG scene.
> All of them are needed when scene is rendered.
> It happens periodically (user can zoom in/out, scroll over scene), so i
> keep them all opened.
>
> 29.09.2010 11:18, Thiago Macieira пишет:
>> On Wednesday 29. September 2010 09.13.45 Serge wrote:
>>> I'm sure there is no leak.
>>> I work with set of images.
>>> There are 300 files.
>>
>> Do you need to open them all at the same time? Can't you open them in
>> sequence, or keep open only the most recently or actively used ones?
>>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list