[Emulator VS 2005 Beta 2] Loading a image file

Hi,
I truy to disp a imaeg file into the emulator. I launch the emulator connect to it via the Visual Stuido Remote Tool then i download a jpg file right in the exe folder.

In my code i write this :



Bitmap bmp =newBitmap("\\Storage\\Program Files\\CSWinTelecopie\\chronos.jpg");
Rectangle srcRect =newRectangle(0,0,bmp.Width,bmp.Height);
e.Graphics.DrawImage(bmp,
this.ClientRectangle, srcRect,GraphicsUnit.Pixel);


I get an error :

Error 1 Deployment and/or registration failed with error: 0x80070020. Le processus ne peut pas accder au fichier car ce fichier est utilis par un autre processus
Conman HelpText System

In fact the error comes from the bitmap creation oO
What's wrong whith that code ?

Thanks

[1717 byte] By [lmussier] at [2008-2-15]
# 1
This error is coming from the deployment system of Visual Studio. It is not related to the bitmap creation. This error usually comes from the fact that your application is already running on the device or that a dependant file is in use. You can check if you application is running in the emulator's Start->Settings->System->Memory->Running Programs. If it running, you can close it from there. If that is not the problem, you can try to reset the device and see if that fixes the problem.
CarlBrochu at 2007-9-9 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 2
That's it, in think that end button should close the app but in fact not.
Sorry to not have check this and thanks for thr answer.
It's working now
lmussier at 2007-9-9 > top of Msdn Tech,Smart Device Development,Smart Devices General...