[错误]应用程序终止时工作程序未终止 [英] [Bug] Worker not terminated when app is terminated

查看:79
本文介绍了[错误]应用程序终止时工作程序未终止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序出错并被"终止"由默认的RP错误处理程序。但是,工作线程仍在运行(在VS中)并且wwahost.exe没有终止。

My app had an error and was "terminated" by the default RP error handler. However, the worker thread was still running (in VS) and the wwahost.exe did not terminate.

推荐答案

嗨Phil,

工作人员在后台进程中运行而不是一个主题:

Worker runs in a background process and is not a thread:

http://msdn.microsoft.com/en-us /library/windows/apps/hh453265.aspx

所以它不会被拉下来,因为它不在调用应用程序进程中。

so it will not be pulled down because it is not in the calling app process.

onerror将不会被调用,因为当Worker有错误而不是拥有过程时会调用它。

onerror will not be called because it is called when the Worker has an error, not the owning process.

-Jeff


这篇关于[错误]应用程序终止时工作程序未终止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆