VB.NET 应用程序未完全关闭

VB.NET 应用程序未完全关闭

问题描述:

当我启动我的应用程序时,按下我的应用程序上的X"按钮,或者我部署的退出按钮:me.close 它不会完全关闭应用程序.就像实例仍在 Visual Studio 中运行一样,或者如果您转到任务管理器进程,您仍然可以在那里看到它.我如何才能完全关闭它?

When I launch my application, and press the "X" button on my app, or my quit button which deploys: me.close It will not fully close the application. Like the instance is still running in Visual Studio or if you go to task manager processes you can still see it there. How would I get this to fully close?

一种可能性是,除了主线程之外,您还有一些线程正在运行,而那些不是后台线程.一般来说,尝试调试它:从 VS 附加到它,并使用暂停按钮中断它,并查看那里有哪些线程,以及它们在做什么.

One possibility is that you have some threads apart from the main thread running, and those aren't background threads. In general, try debugging it: attach to it from VS, and use Pause button to break it, and look at what threads are there, and what they are doing.