Null reference exception on OnPaint Event
Posted: Fri Apr 28, 2017 9:40 am
Hi
On one PC the teechart works as expected, on an other pc we have sometimes null reference (System.NullReferenceException) exceptions on the TeeChart.TChart.OnPaint, the first method is System.Windows.Forms.NativeWindow.DebuggableCallback. Is there a possibility to log some output for the teechart to find the error. No of our code is in the stack trace but may be it's the cause from wrong values. We use the version 4.1.2017.2145
Stack Trace:
bei Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe)
2 bei System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
3 bei System.Windows.Forms.Control.WmPaint(Message& m)
4 bei System.Windows.Forms.Control.WndProc(Message& m)
5 bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Regards
T. Harder
On one PC the teechart works as expected, on an other pc we have sometimes null reference (System.NullReferenceException) exceptions on the TeeChart.TChart.OnPaint, the first method is System.Windows.Forms.NativeWindow.DebuggableCallback. Is there a possibility to log some output for the teechart to find the error. No of our code is in the stack trace but may be it's the cause from wrong values. We use the version 4.1.2017.2145
Stack Trace:
bei Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe)
2 bei System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
3 bei System.Windows.Forms.Control.WmPaint(Message& m)
4 bei System.Windows.Forms.Control.WndProc(Message& m)
5 bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Regards
T. Harder