File is being used by another process

后端 未结 7 1285
野的像风
野的像风 2021-01-11 21:08

I have a program that roughly does this:

  1. open a file to read from it.
  2. close the file
  3. Start a filewatcher to watch for changes in the file.
7条回答
  •  [愿得一人]
    2021-01-11 21:54

    You can use a tool like Process Explorer from http://www.sysinternals.com to see who has the open handle to the process

    The file is most likely held open by whatever caused the change notification to fire in the first place.

提交回复
热议问题