User (Legacy) Posted September 14, 2004 Author Report Share Posted September 14, 2004 Hi There, We have an application that displays data from a database, but sometimes this exception occurs, any pointers as to why this might happen, so we can begin looking at our own code, or could it be a Bug? System.ArgumentException: Der blev brugt en ugyldig parameter. (Means invalid parameter) at System.Drawing.Graphics.MeasureString(String text, Font font, SizeF layoutArea, StringFormat stringFormat) at System.Drawing.Graphics.MeasureString(String text, Font font, SizeF layoutArea) at System.Drawing.Graphics.MeasureString(String text, Font font) at SoftwareFX.ChartFX.Lite.Base.D.MeasureString(String s, Font font) at SoftwareFX.ChartFX.Lite.AxisBase.7U(IGraphicsEx 0S2, Font 0S3, Double 0S4, Double 0S5, ValueFormat 0S6) at SoftwareFX.ChartFX.Lite.AxisBase.7V(IGraphicsEx 0S7, Font 0S8, Boolean 0S9) at SoftwareFX.ChartFX.Lite.AxisBase.7S(IGraphicsEx 0RU, Boolean 0RV, Size& 0RW, Int32& 0RX) at SoftwareFX.ChartFX.Lite.AxisBase.7T(IGraphicsEx 0RY, Boolean 0RZ, Size& 0S0, Int32& 0S1) at SoftwareFX.ChartFX.Lite.AxisBase.76(E 0QV, Int32 0QW) at SoftwareFX.ChartFX.Lite.AxisCollection.E9(0V 16R, Int32 16S, Int32 16T) at SoftwareFX.ChartFX.Lite.0X.HF(IGraphicsEx 1GR, Rectangle& 1GS, Boolean 1GT) at SoftwareFX.ChartFX.Lite.Chart.8Z(IGraphicsEx 0UC, Boolean 0UD) at SoftwareFX.ChartFX.Lite.0A.DB(IGraphicsEx 143, Rectangle& 144, Boolean 145, Rectangle& 146) at SoftwareFX.ChartFX.Lite.0A.DA(IGraphicsEx 140, Rectangle& 141, Boolean 142) at SoftwareFX.ChartFX.Lite.0A.4Z(BarEvent 13N, Object 13O) at SoftwareFX.ChartFX.Lite.02.BK(IBarClient 106, BarLayoutEventArgs 107, Size 108) at SoftwareFX.ChartFX.Lite.T.AM(BarLayoutEventArgs 0Y8) at SoftwareFX.ChartFX.Lite.04.BU(IGraphicsEx 10P, LayoutFlag 10Q, Rectangle& 10R) at SoftwareFX.ChartFX.Lite.04.RecalcLayout(IGraphicsEx gx, LayoutFlag flags) at SoftwareFX.ChartFX.Lite.T.OnVisibleChanged(EventArgs args) at System.Windows.Forms.Control.OnParentVisibleChanged(EventArgs e) at System.Windows.Forms.Control.OnVisibleChanged(EventArgs e) at System.Windows.Forms.ScrollableControl.OnVisibleChanged(EventArgs e) at System.Windows.Forms.Control.OnParentVisibleChanged(EventArgs e) at System.Windows.Forms.Control.OnVisibleChanged(EventArgs e) at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) Link to comment Share on other sites More sharing options...
User (Legacy) Posted September 14, 2004 Report Share Posted September 14, 2004 Hi There, We have an application that displays data from a database, but sometimes this exception occurs, any pointers as to why this might happen, so we can begin looking at our own code, or could it be a Bug? System.ArgumentException: Der blev brugt en ugyldig parameter. (Means invalid parameter) at System.Drawing.Graphics.MeasureString(String text, Font font, SizeF layoutArea, StringFormat stringFormat) at System.Drawing.Graphics.MeasureString(String text, Font font, SizeF layoutArea) at System.Drawing.Graphics.MeasureString(String text, Font font) at SoftwareFX.ChartFX.Lite.Base.D.MeasureString(String s, Font font) at SoftwareFX.ChartFX.Lite.AxisBase.7U(IGraphicsEx 0S2, Font 0S3, Double 0S4, Double 0S5, ValueFormat 0S6) at SoftwareFX.ChartFX.Lite.AxisBase.7V(IGraphicsEx 0S7, Font 0S8, Boolean 0S9) at SoftwareFX.ChartFX.Lite.AxisBase.7S(IGraphicsEx 0RU, Boolean 0RV, Size& 0RW, Int32& 0RX) at SoftwareFX.ChartFX.Lite.AxisBase.7T(IGraphicsEx 0RY, Boolean 0RZ, Size& 0S0, Int32& 0S1) at SoftwareFX.ChartFX.Lite.AxisBase.76(E 0QV, Int32 0QW) at SoftwareFX.ChartFX.Lite.AxisCollection.E9(0V 16R, Int32 16S, Int32 16T) at SoftwareFX.ChartFX.Lite.0X.HF(IGraphicsEx 1GR, Rectangle& 1GS, Boolean 1GT) at SoftwareFX.ChartFX.Lite.Chart.8Z(IGraphicsEx 0UC, Boolean 0UD) at SoftwareFX.ChartFX.Lite.0A.DB(IGraphicsEx 143, Rectangle& 144, Boolean 145, Rectangle& 146) at SoftwareFX.ChartFX.Lite.0A.DA(IGraphicsEx 140, Rectangle& 141, Boolean 142) at SoftwareFX.ChartFX.Lite.0A.4Z(BarEvent 13N, Object 13O) at SoftwareFX.ChartFX.Lite.02.BK(IBarClient 106, BarLayoutEventArgs 107, Size 108) at SoftwareFX.ChartFX.Lite.T.AM(BarLayoutEventArgs 0Y8) at SoftwareFX.ChartFX.Lite.04.BU(IGraphicsEx 10P, LayoutFlag 10Q, Rectangle& 10R) at SoftwareFX.ChartFX.Lite.04.RecalcLayout(IGraphicsEx gx, LayoutFlag flags) at SoftwareFX.ChartFX.Lite.T.OnVisibleChanged(EventArgs args) at System.Windows.Forms.Control.OnParentVisibleChanged(EventArgs e) at System.Windows.Forms.Control.OnVisibleChanged(EventArgs e) at System.Windows.Forms.ScrollableControl.OnVisibleChanged(EventArgs e) at System.Windows.Forms.Control.OnParentVisibleChanged(EventArgs e) at System.Windows.Forms.Control.OnVisibleChanged(EventArgs e) at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) Link to comment Share on other sites More sharing options...
Software FX Posted September 14, 2004 Report Share Posted September 14, 2004 It could be either one (your bug or our bug), with this information I can't tell. I can point you to things to look for that may cause this error: - You may be ending up with a chart without a scale and then performing an operation on it. For example, you did a ResetScale and then passes no data to the chart, or you did but ALL values are the same (so Min and <ax ended up being the same) then you tried to for example attach an annotation object to that axis. - You are assigning a Font and then dispose the font. In order to further assist you we will require a repro case, that is a little program that reproduces the problem. -- FP Software FX Link to comment Share on other sites More sharing options...
Software FX Posted September 14, 2004 Report Share Posted September 14, 2004 It could be either one (your bug or our bug), with this information I can't tell. I can point you to things to look for that may cause this error: - You may be ending up with a chart without a scale and then performing an operation on it. For example, you did a ResetScale and then passes no data to the chart, or you did but ALL values are the same (so Min and <ax ended up being the same) then you tried to for example attach an annotation object to that axis. - You are assigning a Font and then dispose the font. In order to further assist you we will require a repro case, that is a little program that reproduces the problem. -- FP Software FX Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.