退出winform应用程序后调试器消失 [英] Debugger disappear after exiting winform application

查看:144
本文介绍了退出winform应用程序后调试器消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,



我使用c#创建了winform应用程序。我正在运行这个winform-application时阻止某些应用程序(如:mspaint.exe,notepad.exe等)。



我调试并运行应用程序,执行所有任务。并退出应用程序。但是,应用程序仍在该过程中运行(在任务管理器中显示)。



VS-2013中的调试器已消失但已停止。



我尝试过:



我如何搜索调试器所在的位置或者/以及为什么它会消失。



任何人都可以帮助我。



提前致谢。 ..

Dear All,

I have create winform application using c#. Where i'm blocking some application(like: mspaint.exe, notepad.exe, etc...) while running this winform-application.

I debug and run the application, performmed all task. And exit the application. But, still the application is running under the process(displaying in Task-Manager).

And the debugger in VS-2013 was disappeared but stopped.

What I have tried:

How can i search, where the debugger is or/and why it is disappeared.

can any one please help me.

Thanks in advance...

推荐答案

你的问题没有意义。如果正在调试的进程终止,则调试会话也将终止。它没有去任何地方,只有一个原因它消失了,正在调试的过程结束。



此外,写一个应用程序的背后阻止其他进程运行是一个有争议的问题。首先,您的代码不会阻止进程启动。它在事后终止了这个过程。并且,Windows还具有使用策略构建的此功能,实际上阻止了已识别的可执行文件甚至根本启动。
You question doesn't make sense. If the process being debugged terminates, the debugging session also terminates. It didn't "go anywhere" and there is only one reason why "it disappeared", the process being debugged ended.

Also, the point behind writing an application that "blocks" other processes from running is a moot point. First, your code is not preventing the process from launching. It's terminating the process after the fact. AND, Windows also has this functionality built it with policies, actually preventing the identified executables from even launching at all.


这篇关于退出winform应用程序后调试器消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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