turn off delphi exceptions in run time in delphi

前端 未结 3 2013
执笔经年
执笔经年 2021-01-24 07:35

is there any way to turn off exception message showing during run-time in Delphi application? i think there must be a directive to turn off exception message but i cant remember

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-24 08:01

    I use the IDE to turn it off:

    In Delphi 2007, click Tools / Options and go right down to Debugger Options / CodeGear debuggers / Native OS Exceptions. Select "Run Unhandled". The debugger will not halt on exceptions, but act the same as running from an exe. Exceptions will be handled as such.

    For directives, I don't know of one that can exactly do the above, but maybe this will help:

    http://www.delphibasics.co.uk/ByType.asp?Type=Compiler%20Directive

提交回复
热议问题