SpaceShip Posted November 8, 2004 Posted November 8, 2004 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.
SpaceShip Posted November 8, 2004 Author Posted November 8, 2004 Anybody help me? cause when the program is running i can do nothing about it except ctrl+alt+del and stop it.
zivan56 Posted November 16, 2004 Posted November 16, 2004 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.
SpaceShip Posted November 18, 2004 Author Posted November 18, 2004 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.
ekerazha Posted January 17, 2005 Posted January 17, 2005 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...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now