There are two code errors in the current version 2021 in the unit LMDHookComponent. See corrections below. Without this corrections lmd components will lead to a crash if used in your software.
finalization
...
if Assigned(HookList) then HookList.Free;
procedure TLMDCustomHookComponent.SetActive(newValue: Boolean);
....
if not NewValue then
begin
if HookList <> nil then
begin
ch := HookList.GetCtlHook(FControl);
if ch <> nil then begin
ch.RemoveHook(Self);
HookList.FCtlHooks.Remove(ch)
end;
end;
RestoreState;
end
Comments