[fpc-pascal] access violation?

Ryan Joseph ryan at thealchemistguild.com
Fri Jul 27 04:44:23 CEST 2018


I was doing some testing today (Mac) and discovered that calling Free on a nil object didn’t cause a EAccessViolation exception. Why doesn’t that crash?

var
	c: TObject;
begin
	c := nil;
	c.Free;



Regards,
	Ryan Joseph




More information about the fpc-pascal mailing list