image files locking problem.

A

alex

I have few web pages that allow to upload, delete, etc images (.jpg,
..bmp, .gif)

Once the page is doen working with file thru Bitmap class I close file
handles as:

Bitmap bmp = new Bitmap(...);
//some code
bmp.Dispose();
bmp = null;

Now if I try to copy directory where files are located I get error
messages of multiple files as:


"Cannot copy 'filename': Access is denied.The source file may be in
use".

I used Proccess Explorer from SysInternals.com to loock for openn
handles for such locked files, but using "Find handle" i cannot find a
single file with open handles from my list of locked files.

Do you have ideas why files are locked and how to find locking
proccess? Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top