[fpc-pascal] SIGSEGV in fpc_check_object

Sven Barth pascaldragon at googlemail.com
Wed Jun 14 11:18:44 CEST 2017

Am 14.06.2017 11:13 schrieb "Gabor Boros" <mlnglsts at bgss.hu>:
> 2017. 06. 14. 10:28 keltezéssel, José Mejuto írta:
>> That's wrong for sure, x is not initialized to nil, not in Linux nor in
> With the below code caption of the form not changed on Linux for me.
> procedure TForm1.FormCreate(Sender: TObject);
> var
>   x:TPanel;
> begin
>   if Assigned(x) then Caption:='Assigned';
> end;

In this example the content of "x" is undefined as it's a local variable.
The value of it is simply what is currently on the stack which *can* be Nil.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170614/eab2af69/attachment.html>

More information about the fpc-pascal mailing list