ThreadPool.QueueUserWorkItem new Form CreateHanle Deadlock

Posted by bogdanbrudiu on Stack Overflow See other posts from Stack Overflow or by bogdanbrudiu
Published on 2010-04-27T07:15:22Z Indexed on 2010/04/27 7:23 UTC
Read the original article Hit count: 389

Filed under:
|
|
|

I have a thread that needs to create a popup Window. I start the thread using ThreadPool.QueueUserWorkItem(new WaitCallback(CreatePopupinThread)) Thew thread creats a new form. The application freases in the new Form constructor at CreateHandle. The Worker Thread is locked... How can I fix this?

© Stack Overflow or respective owner

Related posts about thread

Related posts about deadlock