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
Null reference exception on OnPaint Event
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Null reference exception on OnPaint Event
Hello,
Do you have any more information on the error, for example, exactly which object is throwing the null reference exception?
Do you get the same error when you set the Graphics3D.BufferStyle to something other than the default, e.g.
(default is OptimizedBuffer)
Do you have any more information on the error, for example, exactly which object is throwing the null reference exception?
Do you get the same error when you set the Graphics3D.BufferStyle to something other than the default, e.g.
Code: Select all
tChart1.Graphics3D.BufferStyle = BufferStyle.DoubleBuffer;
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |