I am working on a C # application and I am facing some threading issues. I would like to know which threads work in my application.
I am using the following code:
foreach (ProcessThread s in Process.GetCurrentProcess().Threads)
{
try
{
int l_iTest = 0;
}
catch
{
}}
I can say, I would like to know which class or, in fact, launched my thread.
Does anyone have any ideas?
source
share