Exception when zooming on chart
Posted: Tue Jul 09, 2013 1:28 pm
We recently upgraded from TChart.WPF 3.5.3700.30575 to 4.1.2013.05282. We face the following problem:
For some of our xy cartesian charts we add event handler methods for the event 'AfterDraw' to draw some custom graphics. Since upgrading to the new TChart, the following exception is thrown when zooming on a chart where 'AfterDraw' event handlers have been added:
"A first chance exception of type 'System.NullReferenceException' occurred in TeeChart.WPF.dll
Additional information: Object reference not set to an instance of an object."
We can reproduce it everytime. If we zoom on a chart where no 'AfterDraw' event handler method is added, all good. However, if we add 'AfterDraw' event handler methods, zooming on the chart causes the exception. I even made our 'AfterDraw' event handler method body empty (basically do nothing), and still zooming causes the exception.
Are you able to reproduce this on your side?
For some of our xy cartesian charts we add event handler methods for the event 'AfterDraw' to draw some custom graphics. Since upgrading to the new TChart, the following exception is thrown when zooming on a chart where 'AfterDraw' event handlers have been added:
"A first chance exception of type 'System.NullReferenceException' occurred in TeeChart.WPF.dll
Additional information: Object reference not set to an instance of an object."
We can reproduce it everytime. If we zoom on a chart where no 'AfterDraw' event handler method is added, all good. However, if we add 'AfterDraw' event handler methods, zooming on the chart causes the exception. I even made our 'AfterDraw' event handler method body empty (basically do nothing), and still zooming causes the exception.
Are you able to reproduce this on your side?