I'm using
TPSScript, and the code below works correctly on x86. However, when I compile it in x64, it doesn't run. Does anyone know why?
I'm using Lazarus 3.8 64x.
My Script:
procedure fechar(Sender: TObject; var CloseAction: TCloseAction);
begin
Showmessage( 'Vou fechar' );
end;
procedure exec;
var F: TForm;
begin
F := TForm.Create(NIL);
try
F.OnClose := @fechar;
F.ShowModal;
finally
F.Free;
end;
end;