A colleague of mine asked me today, how this could be: Given this exception handler: [delphi] try // some code that calls methods except on e: Exception do LogError(e.Message); end; [/delphi] How could e be nil? (and e.Message result in an Access…
4 plus ones
Shared publicly•View activity
- The other one found in my code was IF something THEN Exception.Create('Xxxxx'); I was having a senior moment and it took me 20 minutes to twig what was wrong (missing RAISE).4w
- Yes, that's another one. I just did a grep for " e[a-z]*\.Create\(" and found several, one in the (old) SynEdit version used in GExperts, several in Indy 10 and JVCL (old versions again). None in my own code this time. :-)4w
- Even the Delphi RTL has these kinds of issues. I just filed two bug reports, one is in System.Classes.4w
Add a comment...