Windows Forms application remains alive in task manager after hitting “stop debugging” button

丶灬走出姿态 提交于 2019-12-24 14:28:31

问题


I'm developing an application in C#, it uses WinForms and some unmanaged code too (PInvoke calls to native C++ DLL).

After stopping debugging via stop button in VS 2012, the main executable (not vshost.exe) still remains in windows task manager, and is idle consuming about 110-120 kBytes of memory.

Moreover after killing this process via task manager, I must also restart VS 2012 because some dialog windows tells mi that IDE is unable to start debugging.

Additionally, maybe it will be useful information (I'm unsure) but sometimes when I hit pause, IDE turns in to debug mode, but only for 3-4s, and after that VS2012 freezes, but my application starts to running...

I've installed VS 2012 Update 4 but it not helps.

How to avoid this issue?

来源:https://stackoverflow.com/questions/20443525/windows-forms-application-remains-alive-in-task-manager-after-hitting-stop-debu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!