Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-12

WinCE and ShowModal: Access violation

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

User

Hi, I get the error: "Access violation." when I use quickly a TPopupMenu component with this code on the OnClick MenuItem event:

procedure TForm1.MenuItem1Click(Sender: TObject);
begin
  Form2 := TForm2.Create (Application);
  try
    Form2.ShowModal;
  finally
    Form2.Free;
  end;
end;

Why?

I use Lazarus 0.9.26.

Best regards.

Reply by email