Threads

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
gad said:
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
 
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.
 

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


Back
Top