Reputation: 41
Is there a way to disable all the dialog boxes when an exception or error occurs(like access violations, indy socket errors, timeouts etc.)? They are thrown sometimes in my program, but these errors aren't fatal in any way and can be ignored, just the dialog boxes are disturbing. I use Delphi 7.
Upvotes: 4
Views: 11740
Reputation: 574
@ GJ - Delphi 2007 has that check box. But again as was mentioned above, access violation ain't the kind of exceptions that one should ignore.
Upvotes: 0
Reputation: 507
You can customize Application.OnException event. But IMVHO...
And:
Upvotes: 5
Reputation: 10937
If you just don't wont to show the exception window then go to:
Tools/Options/Debugger Options/Language Exceptions and disable CheckBox Notify on language exceptions. That is walid for Delphi 2010.
(I don't remember if it is the same CheckBox in Delphi 7).
EDIT: In some cases the exceptions are unavoidable, specially when we are working with unknown files from internet. So, I believe that your exceptions are handled properly under Indy, just switch-off Notify on language exceptions
Upvotes: 7
Reputation: 860
Bypass the Application.OnException event. However I would NOT recommend hiding every exception, IMHO that is poor design.
Upvotes: 2