[fpc-pascal]Dereferencing Nil Pointers

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Sun Dec 29 09:57:54 CET 2002


On Sat, 28 Dec 2002, Mark Emerson wrote:

> I did not find "Attempted to dereference a NIL pointer" as a runtime
> error in FPC (except for error 204 which involves calls to dispose or
> Freemem).
>
> For example:
>
> var
>   x : ^char;
>   y : char;
> begin
>   x := nil;
>   y := x^;
> end.

This is the error I get:

Runtime error 216 at 0x080548BD
  0x080548BD
  0xBFFFF33C
  0x080480B0

Michael.





More information about the fpc-pascal mailing list