My program has a self-updade mechanism:
- Download update archive
- Extract files and patch (DLLs, JSONs and PDB file)
- 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?