How to remove the file which has opened handles?
Posted
by
SKINDER
on Stack Overflow
See other posts from Stack Overflow
or by SKINDER
Published on 2010-09-21T19:00:23Z
Indexed on
2011/01/04
18:53 UTC
Read the original article
Hit count: 195
PROBLEM HISTORY:
Now I use Windows Media Player SDK 9 to play AVI files in my desktop application. It works well on Windows XP but when I try to run it on Windows 7 I caught an error - I can not remove AVI file immediately after playback. The problem is that there are opened file handles exist. On Windows XP I have 2 opened file handles during the playing file and they are closed after closing of playback window but on Windows 7 I have already 4 opened handles during the playing file and 2 of them remain after the closing of playback window. They are become free only after closing the application.
QUESTION:
How can I solve this problem? How to remove the file which has opened handles? May be exists something like "force deletion"?
Thanks.
© Stack Overflow or respective owner