I want to hang a Windows application (exe) for testing purposes. The goal is to see the (Not responding) status in the Task Manager.
Attaching a debugger will pause the application.
- The application is suspended when a debugger is attached. Although this may not trigger the "Not Responding" indicator, it will effectively stop execution of the application until it is allowed to continue in the debugger.
Another method is to use a project called "Win32 process suspend/resume tool" http://www.codeproject.com/Articles/2964/Win-process-suspend-resume-tool