私はこのコードでWinFormsのプロジェクトを持っています:
AppDomain.CurrentDomain.UnhandledException += CurrentDomainUnhandledException;
private void CurrentDomainUnhandledException(object sender, UnhandledExceptionEventArgs e)
{ }
e.ExceptionObject
完全な StackTrace が含まれています。
Win Store プロジェクト:
this.UnhandledException += (s, e) =>{
{
MarkedUp.AnalyticClient.LogLastChanceException(e);
};
e.Exception.StackTrace が null です。
両方の例外は、次のコードによって生成されました。
int a=0;
....
try
{
int i = 1 / a;
}
catch (Exception exp)
{
throw;
}
何か案は?