Home All Groups Group Topic Archive Search About
Author
9 Jan 2006 3:32 PM
gad
When I sync threads and wating for a thread to finish (like dialing to modem)
then my user interface is stuck. What can i do to release it?

Author
9 Jan 2006 3:56 PM
Armin Zingler
"gad" <g**@discussions.microsoft.com> schrieb
> When I sync threads and wating for a thread to finish (like dialing
> to modem) then my user interface is stuck. What can i do to release
> it?

Release which one?  Maybe specifiying the timeout when calling Join (do you
call Join?) is sufficient. I wonder why you wait because the other thread is
there not to have a locked user interface. You could wait on another thread,
but I don't think this makes sense. Depends on what you wanna do. In other
words, how do you expect the program to behave?


Armin
Author
9 Jan 2006 7:56 PM
TrtnJohn
You can't block your UI main thread or you user interface will be
non-responsive.  Instead you should have your secondary thread notify your
main thread using Control.Invoke method.

Show quoteHide quote
"gad" wrote:

> When I sync threads and wating for a thread to finish (like dialing to modem)
> then my user interface is stuck. What can i do to release it?
>