Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Experts

I have some threads in my project which their ManagedThreadId have been saved.

I wanna know that is it possible to get their properties such as IsAlive or what time they have been aborted?
Posted
Updated 7-Apr-14 23:11pm
v2

1 solution

As suggested here: "Obtaining a Thread from ThreadID"[^] you might iterate on all the threads of the current process until a match with your ManagedThreadId is found. Then having the thread reference, you can obtain all the required info.
 
Share this answer
 
Comments
Meysam Toluie 12-Apr-14 4:28am    
ProcessThread.Id and Thread.ManagedThreadId are different.
We can not match these two like that!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900