X
xzzy
foreach(Thread t in clsStaticVARS.threadHolder.Values)
{
If (t.Name == Name )
{
if (!t.IsAlive)
{
threadHolder.Remove(t.Name);
break;
}
}
}//end foreach
Where clsStaticVARS.threadHolder is defined as:
private static Hashtable _threadHolder = new Hashtable();
public static Hashtable threadHolder { get { return _threadHolder;} set
{ _threadHolder = value; } }
PROBLEM:
In the above foreach, how do I actually kill the thread?
Thank you,
John Bickmore
{
If (t.Name == Name )
{
if (!t.IsAlive)
{
threadHolder.Remove(t.Name);
break;
}
}
}//end foreach
Where clsStaticVARS.threadHolder is defined as:
private static Hashtable _threadHolder = new Hashtable();
public static Hashtable threadHolder { get { return _threadHolder;} set
{ _threadHolder = value; } }
PROBLEM:
In the above foreach, how do I actually kill the thread?
Thank you,
John Bickmore