How to dynamically load and unload a native DLL file?

后端 未结 3 458
逝去的感伤
逝去的感伤 2020-12-06 11:22

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

3条回答
  •  独厮守ぢ
    2020-12-06 11:55

    Create a worker process that communicates via COM or another IPC mechanism. Then when the DLL dies, you can just restart the worker process.

提交回复
热议问题