We have been using Hydra for a couple of years now and accomplished quite few “interesting” things with it.
Our main application is in Delphi 7 and our plugins in .Net 4.0
Unfortunately, we have accountered a blocking issue since our customers upgraded to Windows 10: our application takes a very long time to close and we get the following exception message: OLE error 80131015.
After investigating, it seems that the problem occurs on unloading module.
We managed to fix the problem by not creating a new appdomain when loading the module: Loadmodule(moduleX, False).
But not creating new appdomain does not suit us for a lot of reasons. We need to really keep our plugins separated from the main application.
Here are our questions:
Are you aware of such a problem?
Do you guys have any idea why unloading fails and takes that much time?
How can we manage to keep AppDomain creation when loading modules?
Thanks in advance for your answers. We are quite in a struggle right now.