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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can attach an eventhandler to
Application.OnExceptionand handle any unhandled exception there.Depending on your Delphi version, you can either
Application.OnException := DoApplicationException.TApplicationEventscomponent on your main form, double click the OnException event and implement your code.