在主应用程序单元结束后你能捕捉到异常吗?

Chr*_*ase 4 delphi exception

在我们的一个应用程序中,我遇到了一个我似乎无法找到或捕获的异常。

...
  Application.CreateForm(TFrmMain, FrmMain);
  outputdebugstring(pansichar('Application Run')); //this is printed
  Application.Run;
  outputdebugstring(pansichar('Application Run After')); //this is printed
end.
<--- The Exception seems to be here    
Run Code Online (Sandbox Code Playgroud)

事件日志显示

> ODS: Application Run 
> //Various Application Messages 
> ODS: Application Run After
> First Change Exception at $xxxxxxxx.  ...etc
Run Code Online (Sandbox Code Playgroud)

我能想到的就是它是其中一个单元的最终代码。

(德尔福 7)

Blo*_*ard 5

尝试安装MadExcept - 它应该捕获异常并为您提供堆栈跟踪。

当我遇到类似问题时,它帮助了我。