[fpc-devel] fpc_pchar_length error
Michael Van Canneyt
michael at freepascal.org
Sun Dec 11 12:57:24 CET 2005
On Sat, 10 Dec 2005, Alexandrov Alexandru wrote:
> The following program will rise an error:
> Adress: $00401493
> Procedure: fpc_pchar_length
>
>
> program project1;
>
> {$mode objfpc}{$H+}
>
> uses
> Classes;
>
> var Buffer: PChar;
> begin
> Buffer := Nil;
> WriteLn(Length( Buffer ));
> end.
>
> is this a bug?
It depends on the specs of "length" :-)
Michael.
More information about the fpc-devel
mailing list