all groups > dotnet security > february 2006 >
You're in the

dotnet security

group:

Exception in mscorlib.dll



Exception in mscorlib.dll Raul Sandoval
2/28/2006 8:04:26 PM
dotnet security: Help me please:

I have an Windows .net application that moves a file from subdirectory, this
file is an image that is showed by picturebox control, but sometimes send me
this:


Uncontroled Exception type 'System.IO.IOException' in mscorlib.dll

Adicional Information: The Proccess can´t get access to file "C:\Documents
and Settings\raulsh\Mis documentos\25 FEBRERO\PROCESADO\528669\00017.jpg"

because is being used by other process

RE: Exception in mscorlib.dll oldbear
3/10/2006 8:28:19 AM
Hi

After a file has been opened, if an error occurs before you close the
filestream or streamreader, than other processes are unable to access the
file.

I suggest you make sure that the streamreader/filestream is closed within a
'finally' statement, to make sure that other processes can access the file if
there is an error.

Hope this helps

AddThis Social Bookmark Button