Jump to content

Recommended Posts

Posted

I am writing a program which using ping component (ICS). While the program starts the ping command, it appears not response in windows task manager. Actually, it program is running ok. Same problem (or phenomena) occured when i use "Sleep" for the program which lets the program stop for a while. I want to know how it happend and if it's normal situation, what should i do if i want to have a stop when the program running like this, e.g. to stop ping.

Thx anyway.


Posted

Whenever you use the sleep API in Windows, it will make the program feel like it is frozen. You may want to try a timer instead of using sleep, as it will not make your program become unresponsive.

Posted

i can deal with sleep, but how about ICS component, when i am using the ping component, the whole program still remains frozen. i add a progress bar, it shows that the program is running well, but during it running, i can do nothing about it even to shut the process down.

  • 1 month later...
Posted

You have to run the component in another thread... if you run it in the main thread (the same of the GUI) then the GUI remains blocked while executing the ping, because the thread is occupied with the ping request...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...