Threading Issues

  • Thread starter Thread starter Mick Walker
  • Start date Start date
M

Mick Walker

I have a question about using threads within my web application.
I have a very long process, and currentlly run it within a new thread.
Before I create the thread and .Start() I set the value of Image control
to visible = True, this image control simply contains an animated .gif
with "Please Wait".

However, this image isnt shown until after the thread finishes.
Does anyone know why this is, and what steps I can take to work around it?

Kind Regards
 
Hello Mick,

You system is blocked, because it await the responce from your tread.
For the long processes the async calls make sence. see there sample http://www.codeproject.com/aspnet/AsyncProcessingMessage.asp

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

MW> image isnt shown until after the thread finishes. Does
MW>
 
Back
Top