简体   繁体   English

检测Windows Store应用程序何时崩溃

[英]Detecting when a windows store app crashes

Is there any smart way to detect when an application has crashed? 有什么聪明的方法可以检测应用程序何时崩溃? I want to use this information to be able to send a crash report to our servers. 我希望使用此信息能够将崩溃报告发送到我们的服务器。

The only thing I've found is checking: 我发现的唯一一件事是检查:

LaunchActivatedEventArgs args.PreviousExecutionState == 
      ApplicationExecutionState.Terminated

When the application is started next time, however can I be sure that the applicatoin crashed just because it has "Terminated" execution state? 但是,下次启动该应用程序时,我是否可以确定该应用程序只是因为其具有“已终止”执行状态而崩溃了? How else can I check this? 我还能如何检查?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM