myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


Listing Thread IDs in VB .NET

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Scripting Technologies] >> VB Script >> Listing Thread IDs in VB .NET Page: [1]
Login
Message << Older Topic   Newer Topic >>
Listing Thread IDs in VB .NET - 6/12/2008 2:51:41 PM   
Shak

 

Posts: 22
Score: 0
Joined: 12/10/2007
Status: offline
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
Post #: 1
Page:   [1]
All Forums >> [Scripting Technologies] >> VB Script >> Listing Thread IDs in VB .NET Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



  
Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.203