[fpc-pascal] SIGSEGV in fpc_check_object
joshyfun at gmail.com
Wed Jun 14 10:28:05 CEST 2017
El 13/06/2017 a las 21:04, Gabor Boros escribió:
> Cannot have a simple test case just a dumb example.
> procedure TForm1.FormCreate(Sender: TObject);
> With Linux no error (x is Nil before the Free call), with Windows got
> SIGSEGV (x is not Nil before the Free call). Is it a Lazarus thing or
> come from FPC?
That's wrong for sure, x is not initialized to nil, not in Linux nor in
Windows. Procedure variables must be always initialized by hand. With
that code you will get a warning from the compiler about uninitialized
More information about the fpc-pascal