G
globus2410
Hi ,
I've a NET CF apply that shows a thumbnails list. Thumbs are shown as
four for page and users can navigate forward and backward through
pages.
To show thumbs I simply used
PictureBox.Image = new Bitmap(path);
Before filling Image property I check them and , if needed , I dispose
their bitmaps .
if(PictureBox.Image!=null)
PictureBox.Image.Dispose();
The problem :
When navigating through my thumbs my app randomly throws an "Out Of
Memory Exception" ....
I also tried to load Bitmaps using filestream , but nothing changed.
It seems that Bitmap Objects are not really disposed .... is it
possible? How can I solve that? How do you handle multiple bitmaps on
CF applications? Where i'm wrong?
Thank you ,
Nicola
I've a NET CF apply that shows a thumbnails list. Thumbs are shown as
four for page and users can navigate forward and backward through
pages.
To show thumbs I simply used
PictureBox.Image = new Bitmap(path);
Before filling Image property I check them and , if needed , I dispose
their bitmaps .
if(PictureBox.Image!=null)
PictureBox.Image.Dispose();
The problem :
When navigating through my thumbs my app randomly throws an "Out Of
Memory Exception" ....
I also tried to load Bitmaps using filestream , but nothing changed.
It seems that Bitmap Objects are not really disposed .... is it
possible? How can I solve that? How do you handle multiple bitmaps on
CF applications? Where i'm wrong?
Thank you ,
Nicola