Guidence

  • Thread starter Thread starter Mark Irvine
  • Start date Start date
M

Mark Irvine

Hi,

I have written a custom web service proxy class that uses the
HttpWebRequest/Response methods. The purpose of this was to read the
response async, but to have access to how much data has been downloaded and
how much is still to come. This then allows me to use a progress bar that
gives accurate feedback to the user. All of this is working fine, however
when I try to wrap this code in another assembly (make things cleaner) and
then pass the progress bar as a parameter things go wrong. The progress bar
will get updated once and then the app will hang. I'm not sure why this
happens, I am using the appropriate Invoke methods. Are there any relevant
support articles or hints anyone can give?

Mark
 
You must use Invoke to update the UI from another thread (which async
callbacks are).

-Chris
 
Back
Top