I have received an error when i run this code from the bottom, but first
execution it's ok, at second execution i receive this type of error
ArgumentException. Why ?

string s="\\Scheda di memoria\\MAPS\\Alba Iulia.bmp";
System.Drawing.Bitmap img=new Bitmap(s);

Cristi

Re: Bitmap + .Net Compact Framework by Alex

Alex
Tue Aug 16 14:36:49 CDT 2005

It could be caused by bitmap size or bitmap format. If you say that the
first run is ok, but then you get an error, it's probably the former. How
big is the bitmap (in pixels), and what is the color depth (256 colors, 24
bit etc)?

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Cristi Barbu" <cristi.barbu@cemi.ro> wrote in message
news:Of5BvJnoFHA.3552@TK2MSFTNGP10.phx.gbl...
>I have received an error when i run this code from the bottom, but first
> execution it's ok, at second execution i receive this type of error
> ArgumentException. Why ?
>
> string s="\\Scheda di memoria\\MAPS\\Alba Iulia.bmp";
> System.Drawing.Bitmap img=new Bitmap(s);
>
> Cristi
>
>