J
Jeff Gaines
I am writing a file manager that uses DirectoryInfo / FileInfo
to obtain details about files and folders that are then shown in
a ListView.
During testing I have found that I can't delete some files or
folders because 'another process is using them'.
I ran Process Explorer (by Mark Russinovich
www.sysinternals.com) and it shows that my app seems to have a
massive number of files and folders open which is a bit
worrying.
Do DirectoryInfo / FileInfo actually open files? If so how do I
close them?
If not I'll need to look elsewhere in the app.
to obtain details about files and folders that are then shown in
a ListView.
During testing I have found that I can't delete some files or
folders because 'another process is using them'.
I ran Process Explorer (by Mark Russinovich
www.sysinternals.com) and it shows that my app seems to have a
massive number of files and folders open which is a bit
worrying.
Do DirectoryInfo / FileInfo actually open files? If so how do I
close them?
If not I'll need to look elsewhere in the app.