C#程序对GDB进行操作后,再进行压缩时,因timestamp文件被另一程序占用而导致压缩失败

报错信息:The process cannot access the file 'xx.gdb\timestamps' because it is being used by another process
解决方法:

  1. 解开读写锁
  2. 释放所有的相关组件(注意一些会返回组件的方法)
  3. 最后GC.Collect( )强行释放。
posted @ 2022-10-21 16:17  某云  阅读(42)  评论(0)    收藏  举报