views:

13

answers:

0

I have a small application that saves images from a digital camera into disk. I generate a small bitmap preview of each folder and that is blocking me from moving the images.

I tried to clear the controls containing the open images:

imageList2.Dispose();
listView1.Items.Clear();
listView1.Clear();
listView1.Dispose();

nodeDirInfo.MoveTo(target);

Access to the path 'New Folder 1' is denied.

Using the tool "procexp.exe" suggested in other posts I can see a process and a handle for each image in the folder.

How can I release those resources or should I choose a different path?