Click here to Skip to main content
15,885,880 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a winform application developed in .Net 2.0 framework which calls webservices.Now we send HTTP request through our application and whenever it is taking more than 3 seconds for receiving HTTP response i start a thread which displays processing image.Now as soon as the HTTP response is received i want to abort the thread or put it to sleep until we need to send another HTTP request.I am not being sleep method on that processing image thread as i am in a different thread.Kindly please help me to get round this issue.
Posted

1 solution

whenever it is taking more than 3 seconds for receiving HTTP response i start a thread which displays processing image

PLEASE tell me your HTTP Request is on a background thread and not the UI code to display this "Processing..." message!?

The WORK goes on background threads. The UI stays on the UI (startup) thread.

Then you don't have to worry about aborting a thread that does nothing but putting up a UI.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900