Q: Why PictureBox takes SO MUCH memory ??
Hi,
I have a problem with memory when trying to load more pictures .....
So what I do is , I load images into PictureBox and keep them there for
further processing ..... so user can see, select, add etc ....
For testing I'm loading 1.3MB tiff's ...
Now the problem occurs when I try to load more pictures (all pictures are
the same ones)... because each and every picture
takes cca. 33MB in memory ..... now I should be able to load at least 40-50
images at onec ..... so this makes cca. 1.5GB of memory ... and ofcourse i
get Out Of Memory .....
Is there any way to reduce this memory ?
I already tried to reduce quality of images, but this conversion takes too
much time for all this images .....
Any help is appreciated.
Thx,
Kris
.
Relevant Pages
- Re: Rapid gfx display Qs
... I think with Autoredraw False you are effectively timing the total time both of loading the picture from disk into memory and also the time taken for the OS to dump that picture to the screen. ... In contrast, with Autoredraw True, you are timing only the time taken to load the picture from disk into memory because the VB Autoredraw system itself will dump the property to the actual display just after your code has finished. ... I get a time of about 79 msecs just to load the picture into a StdPicture object, even though the file size of the jpg is very much smaller, only about one tenth of the file size of the equivalent bmp. ... Much of course depends on the nature of your images, and it is hard to comment any further really without knowing what sort of images they are. ... (microsoft.public.vb.general.discussion) - need to limit or disable files being retained in memory or cache
... The viewing program loads in a browser window ... and gives the user an option to view images. ... The images take a fairly long time to load 1 - 3 ... That tells me that they are in memory somewhere. ... (microsoft.public.windowsxp.perform_maintain) - Re: creating garbage collectable objects (caching objects)
... The fast approach would load all images upfront and create then multiple ... that I do not have enough memory to load ... img.save ... (comp.lang.python) - Re: Forcing First Picture To Load First??
... No, the browser determine the order that elements are loaded, which is normally from the top left to ... space to allow for each of the images, ... > than is desirable to load, but it's not practical to change that. ... > reason both IE and Netscape load several later pictures before loading ... (microsoft.public.frontpage.client) - Re: need to limit or disable files being retained in memory or cache
... The viewing program loads in a browser window ... > and gives the user an option to view images. ... In my testing I noticed that if I load the ... That tells me that they are in memory somewhere. ... (microsoft.public.windowsxp.perform_maintain) |
|