[Lazarus] Something the examine Lazarus or applications?

Bart bartjunk64 at gmail.com
Mon Jan 11 18:26:21 CET 2016


 On 11.01.2016 17:44, Anthony Walter wrote:
> I Delphi at least if you create a component with AOwner set to nil it
> actually (tested under Delphi 7 at least) would set the Owner to
> Application.

That would lead to crashes all over the place:

C:=TComponent.Create(nil);
try
...
finally
  C.Free;
end;

Upon app termination the Application object would the again try to
free C (note: it is not nil) -> Access Violation.

Bart




More information about the Lazarus mailing list