PDA

View Full Version : Delphi TApplication.OnException never called?


braindead0
28-Jun-2006, 07:17 PM
With our previous exception logger (ExRsHook), we still could setup a global event handler per application via Application.OnException, that seems to not be the case with EurekaLog.

Is there any setting that would allow Application.OnException to be called prior to EurekaLog handling the exception? Or is our only choice 'moving' the custom exception handling into a ExceptionNotify event?

admin
29-Jun-2006, 10:52 AM
Hi,

braindead0 wrote:
> With our previous exception logger (ExRsHook), we still could setup a
> global event handler per application via Application.OnException, that
> seems to not be the case with EurekaLog.
>
> Is there any setting that would allow Application.OnException to be
> called prior to EurekaLog handling the exception? Or is our only
> choice 'moving' the custom exception handling into a ExceptionNotify
> event?

Currently if you use EurekaLog then the Application.OnException event will never
be called.

You can force EurekaLog to handle the exception via Application.OnException
event setting Handle parameter of the OnExceptionNotify EurekaLog event to False.

Otherwise you can call Application.OnException event into the EurekaLog
OnExceptionNotify event.

--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!

braindead0
29-Jun-2006, 12:50 PM
Thanks, I worked around it by calling Application.OnException (when assigned) in our eurekalog notify event. Seems to work well.