المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : thread not started



C# Programming
07-11-2009, 10:11 AM
when i start thread it displays "thread is not started"
some times nothing is diplayed nothing is happening
can anyone help....
code is like this

class class1
{
class2 obj=new class2();
thre=new thread(new threadstart(obj.run));
}
class class2
{
public void run()
{
}
}
what can be the problem

This code was posted by me...