, , , .
, , , , ? , app.config :
<runtime>
<legacyUnhandledExceptionPolicy enabled="1"/>
</runtime>
, .
. , - , . , , ,
void AppStartup()
{
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
}
void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
}