Mam projekt na WinForms z tym kodem:WinRt. Nieobsługiwany uchwyt wyjątków. StackTrace jest null
AppDomain.CurrentDomain.UnhandledException += CurrentDomainUnhandledException;
private void CurrentDomainUnhandledException(object sender, UnhandledExceptionEventArgs e)
{ }
e.ExceptionObject
zawiera pełną StackTrace.
In Win projektu Store:
this.UnhandledException += (s, e) =>{
{
MarkedUp.AnalyticClient.LogLastChanceException(e);
};
e.Exception.StackTrace jest null.
Oba były wyjątki generowane przez ten kod:
int a=0;
....
try
{
int i = 1/a;
}
catch (Exception exp)
{
throw;
}
jakieś pomysły?