Re: Try Finally...

From: VBDis (vbdis_at_aol.com)
Date: 10/30/04


Date: 30 Oct 2004 10:02:23 GMT

Im Artikel <ihh3o0dhjdkfuiio399psfa18c9adodfqc@4ax.com>, L D Blake
<not@any.adr> schreibt:

>While it's not true in all cases... this is one case where Windows wins.
>Delphi's exception objects are dead fish without the underlying Windows
>implementation.

I dare to decline ;-)

Kylix implements the same SEH as is used in Delphi, without assistence of the
OS, and FPC most probably does the same for non-Windows platforms. It's only a
matter of compatibility that Delphi uses the Windows SEH model and support, and
only the use of exception objects is a Delphi or OPL internal thing. We could
name it SEOH ;-)

> I do believe it is a mistake to view something as fundamental to the OS as
SEH
> from a top down perspective... one needs to see it from the OSs perspective
to
> truly understand it.

SEH is not a property of OS's in general, instead it's a language feature.
Exceptions or, as formerly named: Interrupts, are a matter of the OS. The
Handling of exceptions is another topic, and it's only for convenience that
Windows implements SEH features for cross-language usage.

DoDi



Relevant Pages

  • Re: Ok.. live and learn.
    ... >> Delphi has embedded their SEH hadlers into the System unit. ... >> guard frame created by TRY comes from the compiler itself. ... The problem with Delphi is that it is always hard to say what is the ... What's so great about Windows SEH? ...
    (comp.lang.pascal.delphi.misc)
  • Re: Try Finally...
    ... so one big part of Delphi SEH requires conversions for system ... >> Delphi SEH structures. ... Structured Exception Handling ... Windows SEH's format, placed there by Delphi". ...
    (comp.lang.pascal.delphi.misc)
  • Re: Try Finally...
    ... Delphi's exception objects are dead fish without the underlying ... > Windows implementation. ... you would argue the other way -- that Delphi exceptions would be ...
    (comp.lang.pascal.delphi.misc)
  • Re: Ok.. live and learn.
    ... > Delphi has embedded their SEH hadlers into the System unit. ... > short of re-writing the compiler we are indeed stuck with it. ... It's clear that you don't like Delphi exception handling and want ... Object Pascal programs to use Windows SEH. ...
    (comp.lang.pascal.delphi.misc)
  • Re: Try Finally...
    ... >handling, and Delphi's exception handling fulfills that definition. ... I still have no formal definition for SEH - is it the Try... ... Some requirements for SEH in Windows applications are dicated by the Windows ... as well as how exceptions in a Delphi DLL affect an application ...
    (comp.lang.pascal.delphi.misc)