I had quite a bit of points, and on clicking the + the first time it exceptioned. I need a workaround for sure on this, this won't do. It only seems to happen when I first start showing the graph, so maybe it's a timing thing.
************** Exception Text **************System.NullReferenceException: Object reference not set to an instance of an object. at Infragistics.Win.UltraWinChart.AxisTool.Scale(Boolean positive) at Infragistics.Win.UltraWinChart.AxisTool.DoAction() at Infragistics.Win.UltraWinChart.AxisTool.MouseDown() at Infragistics.Win.UltraWinChart.UltraChart.OnMouseDown(MouseEventArgs evt) at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.UserControl.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I couldn't reproduce this on my machine. Can you provide a bit more information? What version of netadvantage are you using? What chart type? How many points are you displaying? Which axis has the scroll scale enabled? You mentioned that this only happens when you first start showing the chart, but since you're clicking the '+' the chart has already rendered. I'm not completely sure what you mean by this. Does it not throw and exception if you wait longer?
This is a line chart on the latest Infragistics (8.2 .net 2.0). I would say I have about 500 points or so when I first start, that I use a NumericTimeDataSeries to bind to and add to the graph's series, and also I add points dynamically about every second to that list. The treatdatetimeasstring is = false (so I get time on the xaxis). The scrollscale is enabled on both the x and y axis, however the error comes when I click the + sign on the xaxis scrollscale (not tried y axis one). The x axis is set to auto (so it shows labels automatically given Infragistics ranges). It usually occurs when I first bring the form up, and I quickly click the + a couple times. It exceptions pretty consistently, every couple times or so, so it should be reproducible.
Thanks! I really need this one fixed for sure.