Listing Thread IDs in VB .NET (Full Version)

All Forums >> [Scripting Technologies] >> VB Script



Message


Shak -> Listing Thread IDs in VB .NET (6/12/2008 2:51:41 PM)

Hi Guys,

I'll try and explain this the best way i can.

In my code i'm creating and calling a thread everytime its needed. The thread name is always the same though ofcourse each launched thread has a new ThreadID.

I want to have an option to KILL individual threads when need be. How can list these created threads? System.Diagnostics.Process.GetProcess.Threads works but the threads IDs returned by it are different from the ones i recorded when starting the thread. And for every thread started, internally 6 or more threads are created and therefore i cannot use "System.Diagnostics.Process.GetProcess.Threads " because i have no way to diffrentiate between the thread i want to kill and the ones that belong to the system.

Any help/pointer is much appreciated.

Regards,
Shak




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.65625