On Tue, 14 Aug 2001 03:16:12 +0100, Barry Kelly <✉eircom.net> wrote:
>Please list some valid uses of exception-swallowing try..except blocks, >and I'll show you that the majority should have checked for error before >doing whatever raised the exception.
I tend to mute all exceptions in the execute block of a thread, for instance (otherwise the app has a mysterious tendecy to suddenly dissappear). I often catch exceptions raised by TFilestream, so the user can get a notice in a gracefull manner that the file is locked or the free diskspace is no more. When sending streams as ISAPI responses, i free the stream object if an exception occurs. And i catch everything i do in DLL's.
Thats the main places i use them. So, any of your 95% apply here? Im curious.
- Asbj?rn