在我們的應用程序之一,我得到一個異常,我似乎無法找到或陷阱。你可以在主應用程序單元結束後捕獲異常嗎?
...
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
事件日誌顯示
> ODS: Application Run
> //Various Application Messages
> ODS: Application Run After
> First Change Exception at $xxxxxxxx. ...etc
所有我能想到的是它的單位之一的終止代碼。
(德爾福7)