In .NET WinForms there is a such tip that I can catch any uncatched exception on the application level.
Could it can be done also in Delphi - in the case that the source of the exception can't be bound with try/except block.
You can attach an eventhandler to Application.OnException
and handle any unhandled exception there.
Depending on your Delphi version, you can either
Application.OnException := DoApplicationException
.TApplicationEvents
component on your main form, double click the OnException event and implement your code.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With