[fpc-pascal]null parameters on Win32
Rich Pasco
pasco at acm.org
Sun Apr 20 17:09:36 CEST 2003
I have duplicated this problem with the released 1.06 version, under
Windows 2000 [Version 5.00.2195]. Source file (listparams.pas):
var
i: integer;
begin
for i := 0 to paramcount do begin
writeln('[',i,'] ',paramstr(i));
end;
end.
Command line:
listparams a b "" c
Output:
Runtime error 216 at 0x00402602
0x00402602
0x004020B6
0x00401E5B
0x00401D6D
0x00401059
I hope this helps.
- Rich
Adam Naumowicz wrote:
> Hi,
> I've just noticed that with FPC 1.0.6 on Win32
> one cannot pass empty string as a parameter - Access violation in
> SYSWIN32_SETUP_ARGUMENTS.
> I've just tried:
>
> program tester;
> begin
> end.
>
> .\tester ""
> Runtime error 216 at blah blah blah
>
> Is this issue fixed in 1.0.7 or 1.1 ?
>
> Regards,
> Adam Naumowicz
More information about the fpc-pascal
mailing list