当我闭上我的应用程序仍然是在任务管理器 [英] When I close my application my program is still in Task Manager

查看:114
本文介绍了当我闭上我的应用程序仍然是在任务管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我闭上我的应用程序仍然在任务管理器。我的问题是我必须做的,释放所有资源,并完全关闭我的程序?

When I close my application my program is still in Task Manager. My question is what I have to do to free all resource and to close my program completely?

我有一个BackgroundWorked和两个定时器,也许有一个问题。

I have one BackgroundWorked and two Timers, maybe there is a problem.

推荐答案

你有多个线程?如果是这样,他们有的IsBackground 属性集?如果没有,你的应用程序将继续运行,直到所有的人退出。

Do you have multiple threads? And if so, do they have the IsBackground property set? If not, your application will continue running until all of them exit.

(另外,你跟 Application.Exit()还是另辟蹊径?)

(Also, are you quitting with Application.Exit() or another way?)

这篇关于当我闭上我的应用程序仍然是在任务管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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