I use a third-party DLL written in unmanaged C ++, which manages some of the equipment that we have.
Unfortunately, this DLL causes crashes from time to time, and I was instructed to make it "reboot" automatically. I'm not too sure how to start getting better results.
My project uses C ++. NET 2.0 (2005). I wrap third-party material in a separate DLL. I tried to use FreeLibrary () and LoadLibrary (). However, when I FreeLibrary (), some internal DLL dependencies remain allocated, and LoadLibrary () will crash due to corrupted memory.
Another approach that was proposed was to reorganize the entire project using .NET remote access interfaces. It would be easier to kill another process and restart it, but it will be a lot of work.
Any suggestions? Pointers? Tips
source share