Am 09.12.2020 um 23:45 schrieb Bart via fpc-devel:
Compiled with fpc 3.2.0 on Windows it will output (both 32 and 64 bit):
Runtime error 201 at $004015F1
$004015F1
$00407307
Compiled with fpc 3.2.0 on linux X86_64 it will output
Except block
Finally block
On Windows you need to include th
Hi,
Consider this code:
program Test;
{$apptype console}
{$ifdef fpc}
{$mode objfpc}
{$endif fpc}
{$R+}
var
Arr: array[1..2] of integer;
i: Integer;
begin
i:=5;
try
try
Arr[i] := 1;
except
writeln('Except block');
end;
finally
writeln('Finally block');
end
Already fixed.
Michael.
On Wed, 9 Dec 2020, Pascal Riekenberg via fpc-devel wrote:
Target OS: Win32 for i386
Compiling pastojs\src\pas2jsfiler.pp
Compiling pastojs\src\pas2jsfileutils.pp
Compiling pastojs\src\fppas2js.pp
Writing Resource String Table file: fppas2js.rsj
pas2jsfiler.pp(210,5) E
Target OS: Win32 for i386
Compiling pastojs\src\pas2jsfiler.pp
Compiling pastojs\src\pas2jsfileutils.pp
Compiling pastojs\src\fppas2js.pp
Writing Resource String Table file: fppas2js.rsj
pas2jsfiler.pp(210,5) Error: Expected another 1 array elements
pas2jsfiler.pp(252,41) Error: Illegal expression