I have a buggy third-party DLL files that, after some time of execution, starts throwing the access violation exceptions. When that happens I want to reload that DLL file. H
Create a worker process that communicates via COM or another IPC mechanism. Then when the DLL dies, you can just restart the worker process.