November 8, 200421 yr 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.
November 8, 200421 yr Author Anybody help me? cause when the program is running i can do nothing about it except ctrl+alt+del and stop it.
November 16, 200421 yr 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.
November 18, 200421 yr Author 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.
January 17, 200521 yr 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