In Delphi 10, I build VCL host & FMX plugin application, but get this exception when close application:
Project xx raised exception class EStyleException with message ‘Argument must not be nil’.
The Sample project: Hydra for Delphi\FireMonkey\FMXHost project have same problem. How can I do?
Thanks, logged as bugs://76561
pls update FMXPlugin.dpr
as
library FMXPlugin;
uses
System.SysUtils,
System.Classes,
FMX.Forms, FMX.Types, //<<<<<added
hcFMXPluginController in 'hcFMXPluginController.pas' {FMXPluginController: THYModuleController},
FmxNonVisualPlugin in 'FmxNonVisualPlugin.pas' {FMXNonVisualPlugin: THYFMXNonVisualPlugin},
FmxVisualPlugin in 'FmxVisualPlugin.pas' {FmxVisualPlugin: THYFMXVisualPlugin};
{#HYDRAMODULE}
{$R *.res}
{$R HYFMXSIGNATURE.RES}
begin
end.
this is known FMX bug ( https://quality.embarcadero.com/browse/RSP-15178 ) and it isn’t fixed yet.
bugs://76561 got closed with status fixed.