T
Tark Siala
hi
i'm working on VB.NET 203
and i'm working on application that read Metadata from Photo Take it from
Digital Camera.
i'm use this code:
Dim imageX = New Bitmap(PhotoFullFileNameX)
Dim propItems As PropertyItem() = imageX.PropertyItems
....
....
....
it's working good
but after i read information i need delete this file with:
file.Delete(PhotoFullFileNameX)
but i have this error:
An unhandled exception of type 'System.IO.IOException' occurred in
mscorlib.dll
Additional information: The process cannot access the file
"filename.jpg"
because it is being used by another process.
that's mean the file still under open with (bitmap function)
what i must do to close this connection???
--
Best Regards
Tark M. Siala
Development Manager
INTERNATIONAL COMPUTER CENTER (ICC.Networking)
Messenger: (e-mail address removed)
Web Page: http://www.icc-libya.com
======================================
i'm working on VB.NET 203
and i'm working on application that read Metadata from Photo Take it from
Digital Camera.
i'm use this code:
Dim imageX = New Bitmap(PhotoFullFileNameX)
Dim propItems As PropertyItem() = imageX.PropertyItems
....
....
....
it's working good
but after i read information i need delete this file with:
file.Delete(PhotoFullFileNameX)
but i have this error:
An unhandled exception of type 'System.IO.IOException' occurred in
mscorlib.dll
Additional information: The process cannot access the file
"filename.jpg"
because it is being used by another process.
that's mean the file still under open with (bitmap function)
what i must do to close this connection???
--
Best Regards
Tark M. Siala
Development Manager
INTERNATIONAL COMPUTER CENTER (ICC.Networking)
Messenger: (e-mail address removed)
Web Page: http://www.icc-libya.com
======================================