Conditional definition to suppress IDE exception trapping in Delphi 6 Pro?

I know that I can use the IDE settings in Delphi Pro 6 to stop the IDE from catching and handling Delphi exceptions (stopping the program and switching to debug mode), but, unfortunately, this turns off this processing for all Exceptions. An access violation exception occurs in a DLL for which I do not have source code. I was wondering if there is a conditional character that I don’t know about that I could define / undefined around the code of the violation code, so at least I could turn off Exception handling around this code block. If not, maybe some trick or technique?

+2
source share
1 answer

Compiler directives control how the compiler and linker turn your source code into executable code. Debug instructions are not stored in DCU or binary format, so compiler directives cannot control what you are after.

There are several ways to manage exception handling. I described them in an article I wrote several years ago :

  • Use the "advanced breakpoints" to determine where the debugger should start or stop throwing exceptions.
  • Define specific exception classes that the debugger will always ignore.
  • Disable stop on exceptions.
  • Disable debugging altogether.
+9
source

Source: https://habr.com/ru/post/1446230/


All Articles