Using NationalInstruments.UI.WindowsForms.WaveformGraph with PlotY in a try catch block I get the following error regularly:
System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
at System.Array.BinarySearch(Array array, Int32 index, Int32 length, Object value, IComparer comparer)
at aF.Clip(Double xmin, Double ymin, Double xmax, Double ymax, Double[] xData, Double[] yData, Int32 dataLength, Double[]& clippedXData, Double[]& clippedYData, Int32[]& unclippedDataIndices)
at aE.a(u , u , Rectangle , Boolean , Boolean , PointF[]& )
at as.Map(Rectangle bounds, PointF[]& mappedData)
at as.DrawForeground(ComponentDrawArgsInternal args)
at NationalInstruments.Restricted.ControlElement.a(ComponentDrawArgsInternal , Rectangle , Boolean )
at NationalInstruments.Restricted.ControlElement.DrawChildren(ComponentDrawArgsInternal args, Rectangle clipRectangle)
at NationalInstruments.Restricted.ControlElement.a(ComponentDrawArgsInternal , Rectangle , Boolean )
at NationalInstruments.Restricted.ControlElement.DrawChildren(ComponentDrawArgsInternal args, Rectangle clipRectangle)
at NationalInstruments.Restricted.ControlElement.a(ComponentDrawArgsInternal , Rectangle , Boolean )
at NationalInstruments.Restricted.ControlElement.DrawChildren(ComponentDrawArgsInternal args, Rectangle clipRectangle)
at NationalInstruments.Restricted.ControlElement.a(ComponentDrawArgsInternal , Rectangle , Boolean )
at NationalInstruments.Restricted.ControlElement.a(ComponentDrawArgsInternal , Rectangle )
at NationalInstruments.Restricted.ControlElement.Paint(PaintEventArgs e)
at NationalInstruments.UI.WindowsForms.ControlBase.OnPaint(PaintEventArgs e)
I am using PlotY in a try catch block but still get the error regularly.