Wait for file to be freed by process

后端 未结 11 970
挽巷
挽巷 2020-12-02 14:23

How do I wait for the file to be free so that ss.Save() can overwrite it with a new one? If I run this twice close together(ish), I get a generic GDI+

11条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-02 15:06

    There is no function out there which will allow you to wait on a particular handle / file system location to be available for writing. Sadly, all you can do is poll the handle for writing.

提交回复
热议问题