From within a finally block, is it possible to tell an exception has been raised?
Share
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 could check if ExceptObject or ExceptAddr are assigned.
In the VCL source this is done for exam. in GIFImg.pas or jpeg.pas.
The following code should output
ExceptObject <> nil
ExceptObject = nil
and if you remove the exception then of course
ExceptObject = nil
ExceptObject = nil