Threading Issues

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
 
M

Michael Nemtsev

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top