A
AdrianDev
Hi,
I have a thread which I call like this:
// Allocate a new thread containing class with the host
getInfoThread git = new getInfoThread(host);
// Create the thread and call the Go method
new Thread(new ThreadStart (git.Go)).Start();
// Sleep for 5 seconds and abort the Thread if still active
//Thread,Sleep(5000);
// ????
I want to abort the thread if it has'nt completed after 5 seconds. But how
can I get a reference to the created Thread?
thanks,
I have a thread which I call like this:
// Allocate a new thread containing class with the host
getInfoThread git = new getInfoThread(host);
// Create the thread and call the Go method
new Thread(new ThreadStart (git.Go)).Start();
// Sleep for 5 seconds and abort the Thread if still active
//Thread,Sleep(5000);
// ????
I want to abort the thread if it has'nt completed after 5 seconds. But how
can I get a reference to the created Thread?
thanks,