应用程序在Windows Phone 8.1中崩溃

时间:2016-08-23 11:02:42

标签: c# windows-runtime windows-phone-8.1

如何在winrt windows phone 8.1 app中处理未处理的异常。它仅在输出窗口中显示以下异常名称

The program '[7560] MyApp.exe' has exited with code -1073740791 (0xc0000409).

一段时间显示

The thread 0x552c has exited with code 259 (0x103).
The thread 0x4440 has exited with code 0 (0x0).
The thread 0x5bc has exited with code 0 (0x0).
The thread 0x1560 has exited with code 0 (0x0).
The thread 0x1f04 has exited with code 0 (0x0).
The thread 0x1f30 has exited with code 0 (0x0).

有了这个,我无法在输出窗口中获得有关应用程序崩溃的任何信息。如何找到此异常或如何处理以解决此异常,此异常后应用程序已关闭。

先谢谢。

1 个答案:

答案 0 :(得分:2)

使用try catch块或在app.xml.cs文件上创建自定义错误处理程序..