PDA

View Full Version : QImage: out of memory, returning null image



singhzubin
10th December 2010, 06:26
Hi has anyone found a solution to: QImage: out of memory, returning null image.


As a little context, this error occurs when I try to load a bunch of photographs from E:\Image\Camera folder that houses all the photographs taken from a users camera in the N8. I am building an application that displays a photogallery in QML.

My Application will not show the photographs housed under this folder, it seems it is clogging up phone memory.

Please advise if there is a solution to fix this.

high_flyer
10th December 2010, 09:08
This is probably a problem in your code.
Please post the code responsible for loading the images.

EDIT:
Wait - if you are loading ALL the images in a directory at once, with a smart phone you can very well get out of memory.
You should do smart loading, only loading as many images as you can show at any given time (maybe a bit more so scrolling will be smooth.