[fpc-devel] fpc_pchar_length error
Alexandrov Alexandru
alexandru.alexandrov at gmail.com
Sun Dec 11 22:22:43 CET 2005
On 12/11/05, Michael Van Canneyt <michael at freepascal.org> wrote:
>
>
> 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.
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
What do you mean with specs?
btw i forgot to mention, i tested on winxp.
In Delphi the result is 0, and no error.
Alex
More information about the fpc-devel
mailing list