On 18.01.2014 23:48, Marco van de Voort wrote:
On Fri, Jan 17, 2014 at 09:55:25PM -0500, Bob Hofman wrote:
Both a syntax check and a build did not throw any errors but if I attempted
to run the application it would error out with an access violation as soon
as it got to the above assignment.

I think that FPC is just catching it at compile time while Delphi is not.

Note that there is also a runtime check available for this in FPC. It is
called -CR and very, very useful.

And in trunk it even raises an explicit exception class instead of merely an exception: EObjectCheck. :)

Regards,
Sven


--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to