Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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...
Posted
Updated 18-Jun-17 4:20am
v2

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900