My program has a self-updade mechanism:

  1. Download update archive
  2. Extract files and patch (DLLs, JSONs and PDB file)
  3. Call the service daemon to restart the program.

But every when my program run into runtime exceptions, the pdb file will be held and therefore it cannot be updated since it's been held.

My question is, how to avoid the "pdb holding" thing? Is there any way better than restarting the program, just to release the file?

0 Answers