Re: Q: Why PictureBox takes SO MUCH memory ??



See my reply in the drawing forum and please don't post to multiple groups.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





Kristijan Marin wrote:
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: Performance extreme deterioration
    ... in the current version/run file of Windows and look important, ... Pentium M 1.4 GHz processor and 512 MB of memory. ... If I click on my system tray, there are 24 icons of programs ... programs that automatically load into memory from doing so. ...
    (microsoft.public.windowsxp.general)
  • Re: Back to Hula Baloo, Gerry & Jim.
    ... 1st - When I try to read a C-F card with over 100 images in Windows Explorer, to load and TRY to scroll to the end of the thumbnails, it takes around 20 minutes! ... Meaning when I try to view a CF card in windows exporer it take a long time for the images to load in the box. ... If you have dozens of pictures on that card, this will cause a very noticable delay even on a fast machine, and yours is slow to the point of being creaky. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Maximum Executable Size?
    ... MS reserve the top 2Gb of this address space for Windows ... When you run you application it is going to want to load DLLs. ... DLLs will also load into that 2Gb of memory. ...
    (borland.public.delphi.non-technical)
  • Re: Fuji e550 - order of pics on mem. stick
    ... E550 the order of pictures on the memory stick is NOT the same as the ... familiar with the way your version of Windows operates. ... cases you can change this sort order to whatever order you prefer. ...
    (rec.photo.digital)
  • Re: can the loading of a large number of records go as quick as in DOS
    ... There is a flag in MSHflexGrid, that you can set to false when ... you load the data, and set it to tru when you are done. ... The diference between the DOS-and Windows program is probarbly caused ... these records all the time in memory. ...
    (microsoft.public.vb.general.discussion)