Crashes after upgrading .NET framework version

Hi,

We are maintaining a Delphi 2010 application, which uses Hydra for displaying screens that are implemented in .NET Framework. We were having some issues (slow response times and white screens) so we decided to upgrade the framework version from 4.7.2 to 4.8.1, but now the application crashes in Hydra.Managed.Support (line 197, in CreateManagedPluginInstance). On both ends, we use Hydra version 6.7.01355.

Right now, we are stuck. We checked that all the right dll’s are used, we even ran procmon to see if the application looks for anything out of the ordinary. Would you give us some pointers for where to look next? Or maybe you know the reason for the issue?

Thanks in advance!

Hi,

this is line:

    (Result as IHYCrossPlatformWrapper).CreateInternalInstance(aType);

as I can see, code from Hydra for .NET\Source\RemObjects.Hydra.WPF\VisualPluginWrapper.pas is

method CreateInternalInstance(pluginType: &Type);
begin
  System.Threading.Interlocked.Increment(var _pluginCounter);

  self._plugin := Activator.CreateInstance(pluginType) as IHYCrossPlatformVisualPlugin;
end;

so seems it can’t create plugin instance.
Can launch Delphi host executable from VS and see more information about exception?


Note: we have 2 sets of dll:

  • .NET 3.5 compatible in ...\Hydra for .NET\Bin folder
  • .NET 4.5 compatible in ...\Hydra for .NET\Bin\.NET45 folder

what ones are you using with your plugins?

Hi,

Thanks for your swift response.

We tried to debug the host executable from VS and we found an exception was thrown in the constructor of the plugin (a Serilog problem). This exception was only thrown if we created the plugin from the Delphi application.

Anyway, thanks for pointing us in the right direction!

1 Like