Hi Bill,
Unfortunately, the code is not complete enough for me to recreate the exception as there are missing pieces and infrastructure. Regardless, I suspect the reason for the error is the code is multiple threads are trying to update the series simultaneously.
It's recommended that you use
Device.StartTimer in Xamarin.Forms as it will use the proper clock for the device.
Here's a good discussion on StackOverflow about System Timer vs Device.StartTimer.
Demo
You could use the PropertyChanged event of the series to know when the last time the ItemsSource was set before starting the 1 second timer again.
To stop each timer, you return
false (returning True continues the timer)
With this approach you have a reliable order of operations. Here's the debug output from my attached demo to verify everything is occurringas intended:
Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items