Page 1 of 1

Exception While Zooming!!

Posted: Fri Apr 29, 2011 8:57 am
by 8571714
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

Re: Exception While Zooming!!

Posted: Fri Apr 29, 2011 11:13 am
by 10050769
Hello Nitin,

Please, could you attached your project again including folder Properties? So now this it doesn't work for me and I can't reproduce your exception.

Thanks,

Re: Exception While Zooming!!

Posted: Fri Apr 29, 2011 3:10 pm
by 8571714
Hi,

Please find the sample application attached.

Regards,
Nitin

Re: Exception While Zooming!!

Posted: Mon May 02, 2011 8:11 am
by 8571714
Hi,

Please let me know if you need any other information to reproduce the issue.
I have already sent the sample application when the issue is reproducible.
pwd of the attachment was = password

Regards,
Nitin

Re: Exception While Zooming!!

Posted: Mon May 02, 2011 1:54 pm
by 10050769
Hello Nitin,

Sorry for the delay. We have done many tests with your project and we have reproduced the same problem with next simple code:

Code: Select all

 public Form1()
        {
            InitializeComponent();
            InitializeChart();
        }

        Steema.TeeChart.Styles.ColorGrid grid;
        private void InitializeChart()
        {
            tChart1.Aspect.View3D = false;
            tChart1.Dock = DockStyle.Fill;
            grid = new Steema.TeeChart.Styles.ColorGrid(tChart1.Chart);

            Random y = new Random();

            for (int x = 0; x < 200; x++)
            {
                for (int z = 0; z < 176; z++)
                {
                    grid.Add(x, y.Next(), z);
                }
            }
        }
So, we consider your problem as a bug and I have added it in bug list report with number [TF02015550]. We will try to fix it for next maintenance releases of TeeChart.Net

Thanks,

Re: Exception While Zooming!!

Posted: Tue May 03, 2011 6:06 am
by 8571714
Hi,

What is the expected date of the next maintenance release of TeeChart.Net?
this issue is critical for our cutomer.

Regards,
Nitin

Re: Exception While Zooming!!

Posted: Tue May 03, 2011 7:17 am
by narcis
Hi Nitin,

Considering last maintenance release was published 2 weeks ago you may expect the next one to be out in about 4-6 weeks. This is a high-priority issue. However, at this point, we can not still confirm what will be included in the version. I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them. Moreover, we found that this issue occurs in a very high zoom detail in ColorGrid. I can hardly imagine a real world situation when you need such a zoom level in a ColorGrid series.

Thanks in advance.

Re: Exception While Zooming!!

Posted: Tue Jul 05, 2011 10:12 am
by 8571714
Hi Narcis,

With respect to the below issue, it seems it has been fixed in one of the 2011 releases.
We tried to download the mentioned release from the customer access area but not able to see the same.

Could you please share with us, the correct link from where we can download the 2011 release of TeeChart for the VS.net 2008 containg the requisite fix .

Thanks,
Nitin

Re: Exception While Zooming!!

Posted: Tue Jul 05, 2011 10:20 am
by narcis
Hi Nitin,

Can you please send an email to our Sales Dept at sales at steema dot com with your TeeChart for .NET 2011 license number so that they can check the validity of your subscription and proceed accordingly?

Thanks in advance.