On 12/11/05, Michael Van Canneyt <[EMAIL PROTECTED]> 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@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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to