Exception While Zooming!!
Posted: Fri Apr 29, 2011 8:57 am
Hi Narcis,
We have an application which is using TeeChart dll version no. 4.0.2009.35592.
In this application when the user zoom 6 to 7 time with small square boxes, it is giving overflow exception.
The Stack trace of the error is following:
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit)
at Steema.TeeChart.Drawing.Graphics3DGdiPlus.Draw(Rectangle destRect, Rectangle srcRect, Image image, Boolean transparent)
at Steema.TeeChart.Drawing.Graphics3D.Draw(Rectangle r, Image image, Boolean transparent)
at Steema.TeeChart.Styles.ColorGrid.DrawBitmap(Bitmap bitmap, Rectangle& r)
at Steema.TeeChart.Styles.ColorGrid.DrawCellUsingBitmap(Rectangle& tmpBounds, Rectangle& R)
at Steema.TeeChart.Styles.ColorGrid.Draw()
at Steema.TeeChart.Styles.Series.DrawSeries()
at Steema.TeeChart.Chart.DrawAllSeries(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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at DuplicateTeeChart.Program.Main() in D:\QOSetups\TeeChartLearning\DuplicateTeeChart\DuplicateTeeChart\Program.cs:line 20-
I have attached the sample applicaiton.
Pwd=password
Regards,
Nitin
We have an application which is using TeeChart dll version no. 4.0.2009.35592.
In this application when the user zoom 6 to 7 time with small square boxes, it is giving overflow exception.
The Stack trace of the error is following:
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit)
at Steema.TeeChart.Drawing.Graphics3DGdiPlus.Draw(Rectangle destRect, Rectangle srcRect, Image image, Boolean transparent)
at Steema.TeeChart.Drawing.Graphics3D.Draw(Rectangle r, Image image, Boolean transparent)
at Steema.TeeChart.Styles.ColorGrid.DrawBitmap(Bitmap bitmap, Rectangle& r)
at Steema.TeeChart.Styles.ColorGrid.DrawCellUsingBitmap(Rectangle& tmpBounds, Rectangle& R)
at Steema.TeeChart.Styles.ColorGrid.Draw()
at Steema.TeeChart.Styles.Series.DrawSeries()
at Steema.TeeChart.Chart.DrawAllSeries(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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at DuplicateTeeChart.Program.Main() in D:\QOSetups\TeeChartLearning\DuplicateTeeChart\DuplicateTeeChart\Program.cs:line 20-
I have attached the sample applicaiton.
Pwd=password
Regards,
Nitin