M
MaxMax
I'm using HttpWebRequest. It seems that all the callback called from
HttpWebRequest are in another thread (not in the "original" thread). Now my
problem is that the "original" thread is the thread that maintains the
interface (the forms). I want to signal from the "worker" thread to the main
thread that I've finished downloading the page. How should I do? I can't
simply wait for the end of the thread as in this
http://msdn2.microsoft.com/en-us/library/system.net.httpwebrequest.begingetresponse.aspx
example (the example is a console application) otherwhise my interface would
be not-responsive. And clearly I don't want to use a timer-based polling
method.
--- bye
HttpWebRequest are in another thread (not in the "original" thread). Now my
problem is that the "original" thread is the thread that maintains the
interface (the forms). I want to signal from the "worker" thread to the main
thread that I've finished downloading the page. How should I do? I can't
simply wait for the end of the thread as in this
http://msdn2.microsoft.com/en-us/library/system.net.httpwebrequest.begingetresponse.aspx
example (the example is a console application) otherwhise my interface would
be not-responsive. And clearly I don't want to use a timer-based polling
method.
--- bye