I am trying to build a Win64 version of my application. It works fine as a Win32 binary, but on x64, it produces a range error exception.
I have been able to reproduce it using 0.9.30, and also 0.9.31 + FP 2.4.4 and 0.9.31 + FP 2.5.1.
The problem can be reproduced by creating an empty form, and mapping the FormKeyUp event to something like:
procedure TfrmMain.FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
if (Key = VK_F1) then
begin
ShellExecute(0, 'open', pchar(Application.HelpFile), '', '', SW_SHOWNORMAL);
Pause(2000);
end;
end;
Can anyone confirm if this is a known issue? Any hint for solving it?