Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Exception When working with bitmaps

68 views
Skip to first unread message

Yariv Ziporin

unread,
May 1, 2012, 3:55:34 AM5/1/12
to
Hi,

I am working on a device with windows CE 6.0 OS. I have an exception when trying to load a bitmap image:
The stack trace of the exception is:

"at Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar)
at System.Drawing.Bitmap._InitFromMemoryStream(MemoryStream mstream)
at System.Drawing.Bitmap..ctor(String filename)
at TstBl.Form1.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form._SetVisibleNotify(Boolean fVis)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at System.Windows.Forms.Application.Run(Form fm)
at TstBl.Program.Main()"

The Excption is empty - no description. It happens when I add the image to the resource using the toolbox during design (The exception is on the getobject function call in initializecomponent). It also occures if I try to load the bitmap at run-time.
I am working on VS2008 and CF3.5 installed on the device.

Please help!!
Yariv



0 new messages