[fpc-devel] Patch: Exception handling without SysUtils
F.Klaempfl at gmx.de
Thu Jul 7 22:07:16 CEST 2005
Tomas Hajny wrote:
> Date sent: Thu, 07 Jul 2005 20:53:48 +0200
> From: Florian Klaempfl <F.Klaempfl at gmx.de>
> To: FPC developers' list <fpc-devel at lists.freepascal.org>
> Subject: Re: [fpc-devel] Patch: Exception handling without SysUtils
> Send reply to: FPC developers' list <fpc-devel at lists.freepascal.org>
> <mailto:fpc-devel-request at lists.freepascal.org?subject=unsubscribe>
> <mailto:fpc-devel-request at lists.freepascal.org?subject=subscribe>
>>Yury Sidorov wrote:
>>>From: "Florian Klaempfl" <florian at freepascal.org>
>>>>>I found that try...except and try...finally do not work if
>>>>>SysUtils unit is not used (exception handling code is not called).
>>>>>The following patch fixes this issue.
>>>>Not using sysutils means that you don't want exceptions. If you
>>>>want to have run time errors converted into exceptions use
>>>>sysutils. The patch has another probably undesired side effect:
>>>>imaging someone installed an own errorproc to release resources
>>>>(memory etc.) if he did so, he won't get that exception.
>>>I think try/finally/except should work without SysUtils. It works in
>>>Delphi. For example KOL library does not use SysUtils, but
>>>programmer can use try/finally/except to write crash-proof code.
> Isn't SysUtils used automatically in Delphi mode? That should be
> probably enough for Delphi compatibility, shouldn't it?
More information about the fpc-devel