Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable all exception raising in Delphi?

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.

like image 471
user1262737 Avatar asked Dec 09 '22 23:12

user1262737


1 Answers

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

like image 52
GJ. Avatar answered Dec 24 '22 12:12

GJ.