.Net Thread Execution

Posted by Soham Dasgupta on Stack Overflow See other posts from Stack Overflow or by Soham Dasgupta
Published on 2010-06-11T09:29:06Z Indexed on 2010/06/11 9:32 UTC
Read the original article Hit count: 389

Filed under:
|
|

I have written a thread which I've started using the start method but I'm not able to know when the thread has done executing the method and destroy the thread object.

_ProgressThread = New Thread(AddressOf ExecProc)
_ProgressThread.IsBackground = False
_ProgressThread.Start()

//the flow of execution should come here only after the thread has executed the method
//but its coming and executing this line after the thread has started.
_ProgressThread = Nothing

What is the best method. Please help.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about vb.net