Runtime size of program is growing!?

  • Thread starter Thread starter juvi
  • Start date Start date
J

juvi

Hello,

I have a little program that uses the ImageFactory class from the OpenNETCF.
I am loading images through new StreamOnFile as shown in an solution from
opennetcf.

My question is now: How can I avoid that my program is growing in size if I
am loading such images (the same images) again and again?

thx
juvi
 
Thank you for your reply. how can I cache an image stored local and how could
I use the image in my program?
 
I guess you have the code how to load the image. In order to cache it, store
it somewhere where it will not be cleaned up by the GC so do not let it go
out of scope. Usually you have a Cache class which stores objects that
persist.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com
 
Back
Top