Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8575253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:39:05+00:00 2026-06-11T19:39:05+00:00

For testing, what is the easiest way to make a program appear Not Responding

  • 0

For testing, what is the easiest way to make a program appear “Not Responding”? Interrupt Windows messages or put it in an infinite loop?

I have tried a simple loop like

while(true)

But that does not work.
The test application is a C# console app. Does the fact that it’s running in a console make it “more responsive”? Perhaps there are some parts of the added console handling that make it respond all the time?

Update:

Changed it to a simple Winform Application put that into an infinite loop. Worked lika a charm. Thanks to Servy.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T19:39:07+00:00Added an answer on June 11, 2026 at 7:39 pm

    A console application will never be “Not Responding” from the point of view of Windows Task Manager. In reality task manager isn’t running your program, it’s running a shell (cmd.exe) that is running your program, and that shell is written such that it will always be responding even if your program isn’t. If you aren’t running your program through a shell but are starting it directly, then there won’t be any UI for the program and it won’t be an “Application” in task manager (meaning it won’t show up in the “Application” tab), it will just be a process.

    If you just need to mimic any program “Not Responding” from the point of view of task manager you should make a simple winforms application and put that in an infinite loop. If there is some obscure way of making a program appear “Not Responding” from a console app, at the very least it will be much harder than from any of the standard desktop GUI types.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am wondering what is the easiest way to do the JavaScript Unit testing
I've always wondered the easiest way to figure out whether or not a point
Testing: return request.getCookies() == null; is not an appropriate way test. Is there another
i'm just learning to put in unit testing for my asp.net mvc when i
What is the easiest way to create some kind of test harness for Android
I have my development database, I want to spin off a duplicate for testing.
What's the easiest way to print a stacktrace from a debugging printout? Often during
I need to make a request with a spoofed IP address for testing purposes.
This is a really simple request, but I am not quite sure the easiest/most
testing Play framework and JPA. I eclipsify my very simple test application. Import the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.