Version 1.7 created an issue for me with the charts.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at DevExpress.XtraCharts.Native.CrosshairDrawInfo.CreateCrosshairLabelElement(CrosshairSeriesTextEx crosshairText, TextAnnotationAppearance appearence, CrosshairOptions crosshairOptions, CrosshairSeriesPointEx crosshairPoint)
at DevExpress.XtraCharts.Native.CrosshairDrawInfo.FillPointDrawInfos(CrosshairPaneInfoEx crosshairInfo, CrosshairOptions crosshairOptions, TextAnnotationAppearance appearence)
at DevExpress.XtraCharts.Native.CrosshairDrawInfo…ctor(CrosshairPaneInfoEx crosshairInfo, CrosshairOptions crosshairOptions, TextAnnotationAppearance appearence)
at DevExpress.XtraCharts.Native.CrosshairPaneViewData…ctor(CrosshairPaneInfoEx crosshairPaneInfo, CrosshairSeriesLabel crosshairSeriesLabel, TextMeasurer textMeasurer, CrosshairOptions crosshairOptions, List`1 highlightedPointsInfo)
at DevExpress.XtraCharts.Native.CrosshairPaneViewDataFactory.ProcessCrosshairInfoEx(CrosshairInfoEx crosshairInfos, List`1 highlightedPointsInfo, Boolean useCommonSeriesLabel)
at DevExpress.XtraCharts.XYDiagram2D.CalculateCrosshairViewData(IList`1 series)
at DevExpress.XtraCharts.Native.Chart.DrawCachedContent2D(INativeGraphics gr, Rectangle bounds)
at DevExpress.XtraCharts.Native.Chart.DrawContent2D(INativeGraphics gr, Rectangle bounds, Boolean useImageCache)
at DevExpress.XtraCharts.Native.Chart.DrawContent(Graphics graphics, INativeGraphics gr, Rectangle bounds, Boolean lockDrawingHelper, Boolean useImageCache)
at DevExpress.XtraCharts.Native.Chart.DrawContent(Graphics gr, Rectangle bounds, Boolean useImageCache)
at DevExpress.XtraCharts.ChartControl.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraCharts.ChartControl.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 am getting this exception when I hover over the chart.
Thanks in advance.
Hi Christopher,
I have not managed to reproduce this issue on my side with a simple project. It is difficult to determine the cause of the problem based only on this call stack. Would you please provide a small sample project that illustrates the issue or any additional information what will help us reproduce the issue?
I did not get this on version 1.6 it started on 1.7. It only happens on some computers not all. It has to do when the legend is drawn as you move the mouse over a bar graph. I am afraid you won't be able to reproduce it easily. I have several machines it works on and a handful that it doesn't work on.
I am able to reproduce it. I have to be able to set some of the bar items to 0. It will not allow me to do that. Here is a sample
Special thanks for posting your sample project. We will examine this behavior in greater detail and check for a suitable solution. Your patience is appreciated.