02-20-2010 10:08 PM - edited 02-20-2010 11:06 PM
I need to perform a lot of Http "Get" and "Post" requests. If I am not directly interacting with the user interface (event thread), then do I need to put the class handling the http requests in its own thread?
Any advice would be appreciated, thanks!
Solved! Go to Solution.
02-20-2010 11:12 PM
You should not execute any blocking operation (like an HTTP GET or POST) or any lengthy processing in the event thread. If you do, you run the risk of allowing teh event queue to overflow while you have this thread doing something else, which will cause your app to be terminated by the system.
You should always start a worker thread for any HTTP operation.