I'm working on a C# application and i'm facing some threads issues. I would like to know which threads are running in my application.
I use the code bellow :
foreach (ProcessThread s in Process.GetCurrentProcess().Threads)
{
try
{
int l_iTest = 0;
//(Thread) s.name
//l_liTest += s.Id + ";"; <-- name of the ProcessThread ?
}
catch
{
// Some stuff
}}
My point is, I would like to know which class or assambly has launched my thread.
Does anyone have an idea ?