"Parameter is not valid" happened in TextOut() method
Posted: Tue Feb 07, 2012 3:53 am
We develop an application in .Net 3.5 in VS 2010 c#, using TeeChart Pro v 3.5.3225.32185.
We have a function need the method:Tchart.Graphics3D.TextOut(10,5,"ABC").
But in the last two month wo have a exception about this twice,the log is:
System.ArgumentException: Parameter is not valid.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format)
at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, Single x, Single y, StringFormat format)
at Steema.TeeChart.Drawing.Graphics3DGdiPlus.DoDrawString(Int32 x, Int32 y, String text, ChartBrush aBrush)
at Steema.TeeChart.Drawing.Graphics3D.TextOut(ChartFont f, Int32 x, Int32 y, String text)
at Steema.TeeChart.Drawing.Graphics3D.TextOut(Int32 x, Int32 y, String text)
And this is also hardly to be reproduced.We guess it maybe the Tchart has disposed the parameter which the DrawString need ,maybe is ChartFont.
So please to help to fixed this issue.
Thanks!
We have a function need the method:Tchart.Graphics3D.TextOut(10,5,"ABC").
But in the last two month wo have a exception about this twice,the log is:
System.ArgumentException: Parameter is not valid.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format)
at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, Single x, Single y, StringFormat format)
at Steema.TeeChart.Drawing.Graphics3DGdiPlus.DoDrawString(Int32 x, Int32 y, String text, ChartBrush aBrush)
at Steema.TeeChart.Drawing.Graphics3D.TextOut(ChartFont f, Int32 x, Int32 y, String text)
at Steema.TeeChart.Drawing.Graphics3D.TextOut(Int32 x, Int32 y, String text)
And this is also hardly to be reproduced.We guess it maybe the Tchart has disposed the parameter which the DrawString need ,maybe is ChartFont.
So please to help to fixed this issue.
Thanks!