There is the event Application.OnException - if unhandled exceptions get to
this level then you can process them in here.

A component could override this value - there are other less obscure ways -
depends on what does the initial call/event. If they replace the/a window
procedure, then their window procedure event handler could "swallow" all the
unhandled exceptions ...

You need to look at the stack trace or single step from the point of the
initial exception to find out what is happening.

Myles.


> -----Original Message-----
> From: Colin Fraser [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, August 07, 2000 3:12 PM
> To:   Multiple recipients of list delphi
> Subject:      [DUG]:  Exceptions not getting caught
> 
> Hi all,
> 
> I have an app that when an exception occurs, it does get caught if you put
> in try finally or on Exception (etc) but if you don't handle it, it simply
> disappears... the default behaviour does not seem to occur.
> 
> I can put a raise Exception.Create on a button on a form and execute it,
> and
> nothing happens (In the IDE Delphi does break for it, but outside of the
> IDE
> it does nothing (and the code following it does not execute either, so
> something is happening))...
> 
> Just wondering if there is a way to turn the default exception handling on
> or off...
> 
> I have looked through the compiler directives but have not found
> anything...
> 
> The app has a few third party controls... just wondering if they have
> somehow turned off the default exception handling.
> 
> Thanks for any help.
> 
> Colin
> 
> 
> --------------------------------------------------------------------------
> -
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to