Jump to content
stacker_liew

Why AV happen here

Recommended Posts

1 hour ago, stacker_liew said:

What is the reason av is happen when the login frame is shown

This is the code:

unit utTFrameStandDemoLoginFrame;

interface

uses
  System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
  FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls,
  FMX.Controls.Presentation, FMX.Objects, FMX.Effects, FrameStand;

type
  TTFrameStandDemoLoginFrame = class(TFrame)
    TFrameStandDemoLoginFrameRectangle: TRectangle;
    TFrameStandDemoLoginFrameToolBar: TToolBar;
    TFrameStandDemoLoginFrameToolBarShadowEffect: TShadowEffect;
    TFrameStandDemoLoginFrameToolBarLabel: TLabel;
    TFrameStandDemoLoginFrameToolBarBackSpeedButton: TSpeedButton;
    procedure TFrameStandDemoLoginFrameToolBarBackSpeedButtonClick(Sender: TObject);
  private
    { Private declarations }
    [FrameInfo]
    FInfo: TFrameInfo<TTFrameStandDemoLoginFrame>;
  public
    { Public declarations }
  end;

implementation

{$R *.fmx}

procedure TTFrameStandDemoLoginFrame.TFrameStandDemoLoginFrameToolBarBackSpeedButtonClick(Sender: TObject);
begin
  FInfo.HideAndClose;
end;

I expect it's because FInfo is not being created

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×