2017-12-28 28 views
1

Windows 10 데스크톱 용 uwp app (.Net native)을 만들었습니다. 라이브 충돌 보고서를 수집하는 데 HockeyApp을 사용합니다. 스택 추적 정보가 아닙니다. 이것은 오래 지속되는 문제이며 해결책이 없습니다. 나는 this을 시도했지만 작동하지 않습니다. 내 컴퓨터에서uwp app (.net 네이티브) 및 처리되지 않은 예외

System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 
Arg_NullReferenceException 

Microsoft.HockeyApp.Extensibility.Windows.UnhandledExceptionTelemetryModule.CoreApplication_UnhandledErrorDetected 
The parameter is incorrect. The parameter is incorrect. 

응용 프로그램이 안정적으로 작동합니다 나는이 예외를 얻을. 아마도 이는 Windows 버전 때문일 수 있습니다. 나는 이것이 내 xaml 때문이라고 생각한다. 이러한 실수를 바로 잡는 것이 중요합니다. 하지만 나는 테이블을 거부 할 수 없다. 아이디어를 얻으려면 어떻게해야합니까?

답변

3

죄송합니다. 답변이 아니었지만 의견 상자에 충분한 공간이 없습니다.


은 당신의 App.xaml.cs에서 다음을 시도하십시오. 이러한 이벤트에 처리기를 추가하고 충돌에 대해보고 한 내용이 있는지 확인하십시오.

public App() 
{ 
    UnhandledException += OnUnhandledException; 
    TaskScheduler.UnobservedTaskException += OnUnobservedException; 

    InitializeComponent(); 
} 

private static void OnUnhandledException(object sender, UnhandledExceptionEventArgs e) 
{ 
    // Occurs when an exception is not handled on the UI thread. 


    // if you want to suppress and handle it manually, 
    // otherwise app shuts down. 
    e.Handled = true; 
} 

private static void OnUnobservedException(object sender, UnobservedTaskExceptionEventArgs e) 
{ 
    // Occurs when an exception is not handled on a background thread. 
    // ie. A task is fired and forgotten Task.Run(() => {...}) 


    // suppress and handle it manually. 
    e.SetObserved(); 
} 
+0

고맙습니다. 나는 그것을 시도 할 것이다. – FetFrumos