How can I simulate a “locked” file (one which has a write lock)

前端 未结 4 1228
[愿得一人]
[愿得一人] 2021-02-05 09:37

I am trying to debug a problem where users occasionally have locked files which they try to open. The code appears to have correct exception handling but users are still report

4条回答
  •  情书的邮戳
    2021-02-05 10:01

    depends, but in case, MS word locks
    if you are wonderig if your application lock files and it do not relase locks:
    just modify a bit your aplication (to create a testapp) and never close the file (and keep it runnig)

提交回复
热议问题