[fpc-pascal] access violation?

Michael Van Canneyt michael at freepascal.org
Fri Jul 27 07:36:57 CEST 2018



On Thu, 26 Jul 2018, Ryan Joseph wrote:

> 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?

It is by design.

And - OMG !! - it is even documented:

https://www.freepascal.org/docs-html/current/rtl/system/tobject.free.html

Michael.


More information about the fpc-pascal mailing list