且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Windows应用程序已停止工作

更新时间:2021-11-16 22:29:42

我不得不在这里做一些诊断工作。当你说应用程序已经停止工作时,这是否意味着它没有启动,或者启动,运行一段时间然后停止?我要做的前两件事是:
You're going to have to do some diagnostics work here I'm afraid. When you say the application has stopped working, does that mean that it doesn't start up, or that it starts, runs for a while and then stops? The first two things I would do are:
  1. 查看事件查看器,看看你的应用程序是否已经崩溃并将信息写入事件日志。
  2. 确保我有异常处理程序来捕获未处理的异常,并将记录添加到应用程序中以记录正在发生的事情。