i am kinda newbie, but i am learning... (hopefully....)
i am getting this error:
"Method name expected" (also near the error i get "11") have no idea what it means....
when i try to:
----> ThreadStart Monitor = new ThreadStart(MonitorAndUpdate(ref SensorReadings, message, SensorID)); <---- this is where i get the error
Thread thread = new Thread(Monitor);
thread.Start();
when:
public void MonitorAndUpdate(ref List
{
foreach (SensorReadings Info in SnsReadings)
{
if (Info.SensorID == SensorID)
rTxtVals.Text = Info.GraphVals;
}
}
can someone try and help me out here with this?
Koteswararao MallisettiPosted Nov 12, 2010, 1:20 PM
in the method definition u remove parameters it will work