Am 01.04.2012 17:40 schrieb "Hans-Peter Diettrich" <[email protected]>:
> There exist more hidden pitfalls, e.g. that you have to use SysUtils in
order to make SEH work - a Delphi heritage.

This is wrong in multiple ways:
* SEH itself is not fully utilized by FPC (though that recently changed on
Win64), it only sets the UnexpectedExceptionHandler to integrate its own
platform independant exception handling mechanism
* Exception handling is implemented in the System unit. SysUtils merely
defines the Exception class and registers a conversion function for runtime
errors to descendants of this class. It's perfectly valid to use exceptions
that derive directly from TObject without including unit SysUtils. Unlike
TObject the Exception class is nothing special as far as the compiler is
concerned.

Regards,
Sven
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to