R
RobcPettit
Hi, Im experimenting with threading and classes and Im getting wrong
return type. my class is called bjresults with:
public int getrecordleft()
{
return linestartotal;
}
linestartotal has already been set and works ok, just trying to get the
value. my thread is
BJresults tr = new BJresults();
ThreadStart recs = new ThreadStart(tr.getrecordleft);
Thread thread = new Thread(recs);
thread.Start();
{
Console.WriteLine();
Thread.Sleep(500);
}
I know the consolewritelines wrong, cant get past the tr.getrecordleft.
I think Im calling it wrong but dont know whats wrong.
Ive managed to get one thread working with
ThreadStart job = new ThreadStart(sr.GethtmlStream);
Thread thread = new Thread(job);
thread.Start();
but it doesnt ask for any return values. So thats ok. Any ideas.
Regards Robert
return type. my class is called bjresults with:
public int getrecordleft()
{
return linestartotal;
}
linestartotal has already been set and works ok, just trying to get the
value. my thread is
BJresults tr = new BJresults();
ThreadStart recs = new ThreadStart(tr.getrecordleft);
Thread thread = new Thread(recs);
thread.Start();
{
Console.WriteLine();
Thread.Sleep(500);
}
I know the consolewritelines wrong, cant get past the tr.getrecordleft.
I think Im calling it wrong but dont know whats wrong.
Ive managed to get one thread working with
ThreadStart job = new ThreadStart(sr.GethtmlStream);
Thread thread = new Thread(job);
thread.Start();
but it doesnt ask for any return values. So thats ok. Any ideas.
Regards Robert