When I watch the XValues.Count using a timer, I basically see:
# XValues
200
200
200
200
0
200
200
...
My program design is as follows:
A backgroundWorker reads data in a while loop over a network connection and saves this data in a List
A second backgroundWorker makes a local copy of the newest data from this List, parses it and adds it to a DataTable.
A Windows Forms timer then periodically refreshes the graph using the following function:
Code: Select all
private void RefreshGraph()
{
for (int i = 0; i < tChartWeldTelem.Series.Count; i++)
{
try
{
tChartWeldTelem[i].CheckDataSource();
}
catch { }
}
}
Has anyone experienced anything similar to this?