我們已通過以下方式註冊了未處理的異常。該應用程序是一個遠程服務器。如果遠程處理服務器拋出未處理的異常,則不處理未處理的異常處理程序。可能是什麼問題呢?未處理的異常未被處理程序捕獲
[STAThread]
[Obfuscation(Exclude = true)]
static void Main(string[] args)
{
Application.ThreadException += new ThreadExceptionEventHandler(OnThreadException);
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(OnUnhandledException);
.
.
.
Application.EnableVisualStyles();
Application.Run(form);
}
拋出的異常(stacktrace)在什麼地方拋出並拋出在同一個appdomain中? – Polity
這個問題發生在x64操作系統上嗎? – yas4891
該問題發生在32位操作系統 – Maanu