Experience with WinCE6 and Bitmaps from file

Joined
Apr 15, 2008
Messages
1
Reaction score
0
Hi,

I am developing an application in VB2005 for a smart device which uses Win CE 6 together with .NET CF2 SP2.

In this application there is a picturebox on a form, which shall show different bitmaps coming from BMP-file depending on conditions, which will vary from time to time.

I use the classical method to load a bitmap-file:

Picture = New Bitmap(filename & ".bmp")

It works fine for the first few times but then I get a memory overflow exception. Seems that each time I use the "New" method, really a new bitmap object is created which consumes more memory. Unfortunately the
Picture.dispose() method does not help.

I have to exchange the picture often and I don't want to get out of memory without sense. Does anyone have an idea how to deal with this requirement ??

Thanks in advance, regards

Knipsknaps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top