Delphi 6 Pro 中抑制 IDE 拦截异常的条件定义?
我知道我可以使用 Delphi Pro 6 中的 IDE 设置来阻止 IDE 拦截和处理 Delphi 异常(停止程序并进入调试模式),但不幸的是,这会关闭对所有异常的处理。访问冲突异常发生在我没有源代码的 DLL 中。我想知道是否有一个我不知道的条件符号,我可以在有问题的代码块周围定义/取消定义,这样至少我可以关闭该代码块周围的异常处理。如果没有,也许有一些技巧或技巧可以做到这一点?
I know I can use the IDE settings in Delphi Pro 6 to stop the IDE from intercepting and handling Delphi Exceptions (stopping the program and entering Debug mode), but unfortunately that turns off that handling for all Exceptions. The Access Violation Exception is happening in a DLL that I don't have the source code for. I was wondering if there is a conditional symbol I don't know about that I could define/undefine around the offending code block so at least I could turn off Exception handling around that code block. If not, perhaps some trick or technique to do so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编译器指令控制编译器和链接器如何将源代码转换为可执行代码。调试指令不存储在 DCU 或二进制文件中,因此编译器指令无法控制您要执行的操作。
有多种方法可以控制异常处理。我在我几年前写的一篇文章中描述了它们
Compiler directives control how the compiler and linker turn your source code into executable code. Debugging instructions aren't stored in the DCU or the binary, so compiler directives can't control what you're after.
There are several ways to control exception handling. I've described them in an article I wrote a few years ago: