OutOfMemoryException thrown in TeeChart
Posted: Wed Nov 30, 2011 7:30 am
Hi,
I got the following exception followed by a big Red Cross in the chart when i am updating the FastLine with few hundreds of items and labels continuously. Is there any limit for the number of labels allowed in Teechart?
(I don't have any sample application that can duplicate the issue yet.)
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Collections.ArrayList.set_Capacity(Int32 value)
at System.Collections.ArrayList.EnsureCapacity(Int32 min)
at System.Collections.ArrayList.Add(Object value)
at Steema.TeeChart.Axis.DrawAxisLabel(ChartFont f, Int32 x, Int32 y, Int32 angle, String st, TextShape format, Boolean isTitle)
at Steema.TeeChart.Axis.DrawAxisLabel(ChartFont f, Int32 x, Int32 y, Int32 angle, String st, TextShape format)
at Steema.TeeChart.Axis.DrawAxisLabel(Int32 x, Int32 y, Int32 angle, String st, TextShape labelItem)
at Steema.TeeChart.Axis.AxisDraw.DrawThisLabel(Int32 labelPos, String tmpSt, TextShape labelItem)
at Steema.TeeChart.Axis.AxisDraw.AxisLabelsSeries(Rectangle rect)
at Steema.TeeChart.Axis.AxisDraw.Draw(Boolean calcPosAxis)
at Steema.TeeChart.Axis.Draw(Boolean calcPosAxis)
at Steema.TeeChart.Axes.Draw(Graphics3D g)
at Steema.TeeChart.Chart.InternalDraw(Graphics g, Boolean noTools)
at Steema.TeeChart.Chart.InternalDraw(Graphics g)
at Steema.TeeChart.TChart.Draw(Graphics g)
at Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.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 got the following exception followed by a big Red Cross in the chart when i am updating the FastLine with few hundreds of items and labels continuously. Is there any limit for the number of labels allowed in Teechart?
(I don't have any sample application that can duplicate the issue yet.)
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Collections.ArrayList.set_Capacity(Int32 value)
at System.Collections.ArrayList.EnsureCapacity(Int32 min)
at System.Collections.ArrayList.Add(Object value)
at Steema.TeeChart.Axis.DrawAxisLabel(ChartFont f, Int32 x, Int32 y, Int32 angle, String st, TextShape format, Boolean isTitle)
at Steema.TeeChart.Axis.DrawAxisLabel(ChartFont f, Int32 x, Int32 y, Int32 angle, String st, TextShape format)
at Steema.TeeChart.Axis.DrawAxisLabel(Int32 x, Int32 y, Int32 angle, String st, TextShape labelItem)
at Steema.TeeChart.Axis.AxisDraw.DrawThisLabel(Int32 labelPos, String tmpSt, TextShape labelItem)
at Steema.TeeChart.Axis.AxisDraw.AxisLabelsSeries(Rectangle rect)
at Steema.TeeChart.Axis.AxisDraw.Draw(Boolean calcPosAxis)
at Steema.TeeChart.Axis.Draw(Boolean calcPosAxis)
at Steema.TeeChart.Axes.Draw(Graphics3D g)
at Steema.TeeChart.Chart.InternalDraw(Graphics g, Boolean noTools)
at Steema.TeeChart.Chart.InternalDraw(Graphics g)
at Steema.TeeChart.TChart.Draw(Graphics g)
at Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.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)