Home All Groups Group Topic Archive Search About

Sharing violation error

Author
12 Jun 2006 9:48 PM
techy
hi guys


i am facing an error while trying  to delete a file

access denied  "c:\\22.bmp" file is in use by another process


what i am trying to do is


i have loaded an image it goes fine
but if i try to change the file then , it throws the error

thanks in advance to all fellow techies

Author
12 Jun 2006 11:13 PM
Saad Rehmani
Techy,

Do a search for 'Process Explorer', use it to figure out what process has
a handle open to the file that you're trying to delete.

If its the same exe as the one that you're running this in, make sure you're
Dispose()'ing any previous handles to this image.

Cheers,


--
Saad Rehmani / Prodika / Dallas / TX / USA

Show quote
> hi guys
>
> i am facing an error while trying  to delete a file
>
> access denied  "c:\\22.bmp" file is in use by another process
>
> what i am trying to do is
>
> i have loaded an image it goes fine
> but if i try to change the file then , it throws the error
> thanks in advance to all fellow techies
>
Author
13 Jun 2006 6:23 AM
krishjaya
Hi,

Just re-start the machine

Kj


techy wrote:
Show quote
> hi guys
>
>
> i am facing an error while trying  to delete a file
>
> access denied  "c:\\22.bmp" file is in use by another process
>
>
> what i am trying to do is
>
>
> i have loaded an image it goes fine
> but if i try to change the file then , it throws the error
>
> thanks in advance to all fellow techies

AddThis Social Bookmark Button