Stack Overflow using Hyperlink Event

  • If I create a HyperLinkEvent procedure with or without something in it (comment out the line of code), and I double-click a hyperlink, it causes a Stack Overflow.

    Example:

    Code
    procedure TWPToolsFMXDemo.WPRichText1HyperLinkEvent(Sender: TObject; text,
      url: string; IgnoredNumber: Integer);
    begin
      //MessageDlg(url, TMsgDlgType.mtInformation, [TMsgDlgBtn.mbOK], 0 );
    end;

    Delphi 10.4.2

    WPTools FMX 2020-05-04

    Windows 64 bit build

    Einmal editiert, zuletzt von ehimmer (11. September 2021 um 23:32)

    • Offizieller Beitrag

    The hyperlink event is not intended for this use. This works fine on VCL but under FMX it is a completely different thing.

    With FMX you always need to decouple user actions from output methods or showing a dialog box using a timer or a message handler. If you don't do this, you may miss screen updates.