Home All Groups Group Topic Archive Search About
Author
13 Jul 2006 11:19 AM
Aristotelis Pitaridis
Hi,

I have a problem with image access. I load a file:

MyBitmap = New Bitmap("test.jpg")



After that the user presses the appropriate button in order to replace the
image with a new one:



MyBitmap.Save(LastPlayedGame & ".jpg",
System.Drawing.Imaging.ImageFormat.Jpeg)



The error message says that the the file is used by an other process??????

What should I do in order to release the file after loading the image?



Aristotelis

Author
13 Jul 2006 11:07 AM
Herfried K. Wagner [MVP]
"Aristotelis Pitaridis" <pitari***@hotmail.com> schrieb:
> MyBitmap.Save(LastPlayedGame & ".jpg",
> System.Drawing.Imaging.ImageFormat.Jpeg)
>
> The error message says that the the file is used by an other process??????

<URL:http://dotnet.mvps.org/dotnet/code/graphics/#ImageNoLock>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
13 Jul 2006 4:37 PM
Aristotelis Pitaridis
Thank's.

It was a bit difficult for me to understund it because it was in german but
finally I made it work.

Aristotelis

Show quoteHide quote
? "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> ???a?e st? µ???µa
news:eGGn9xmpGHA.4932@TK2MSFTNGP05.phx.gbl...
>
> "Aristotelis Pitaridis" <pitari***@hotmail.com> schrieb:
>> MyBitmap.Save(LastPlayedGame & ".jpg",
>> System.Drawing.Imaging.ImageFormat.Jpeg)
>>
>> The error message says that the the file is used by an other
>> process??????
>
> <URL:http://dotnet.mvps.org/dotnet/code/graphics/#ImageNoLock>
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>
Author
13 Jul 2006 11:06 PM
Herfried K. Wagner [MVP]
"Aristotelis Pitaridis" <pitari***@hotmail.com> schrieb:
> It was a bit difficult for me to understund it because it was in german
> but finally I made it work.

Great -- VB.NET is the language everybody speaks in this group :-).

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
14 Jul 2006 6:45 AM
Aristotelis Pitaridis
I am sure about this. I do not speak very good language. My native language
is Greek.

Thanks again

Show quoteHide quote
? "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> ???a?e st? µ???µa
news:%23lUftDtpGHA.4996@TK2MSFTNGP05.phx.gbl...
>
> "Aristotelis Pitaridis" <pitari***@hotmail.com> schrieb:
>> It was a bit difficult for me to understund it because it was in german
>> but finally I made it work.
>
> Great -- VB.NET is the language everybody speaks in this group :-).
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>