Exception While Zooming!!

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
nitin
Newbie
Newbie
Posts: 51
Joined: Thu Aug 22, 2002 4:00 am

Exception While Zooming!!

Post by nitin » 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
Attachments
DuplicateTeeChart.zip
(207.32 KiB) Downloaded 966 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Exception While Zooming!!

Post by Sandra » Fri Apr 29, 2011 11:13 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

nitin
Newbie
Newbie
Posts: 51
Joined: Thu Aug 22, 2002 4:00 am

Re: Exception While Zooming!!

Post by nitin » Fri Apr 29, 2011 3:10 pm

Hi,

Please find the sample application attached.

Regards,
Nitin
Attachments
DuplicateTeeChart.zip
(210.64 KiB) Downloaded 934 times

nitin
Newbie
Newbie
Posts: 51
Joined: Thu Aug 22, 2002 4:00 am

Re: Exception While Zooming!!

Post by nitin » Mon May 02, 2011 8:11 am

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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Exception While Zooming!!

Post by Sandra » Mon May 02, 2011 1:54 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

nitin
Newbie
Newbie
Posts: 51
Joined: Thu Aug 22, 2002 4:00 am

Re: Exception While Zooming!!

Post by nitin » Tue May 03, 2011 6:06 am

Hi,

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

Regards,
Nitin

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Exception While Zooming!!

Post by Narcís » Tue May 03, 2011 7:17 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

nitin
Newbie
Newbie
Posts: 51
Joined: Thu Aug 22, 2002 4:00 am

Re: Exception While Zooming!!

Post by nitin » Tue Jul 05, 2011 10:12 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Exception While Zooming!!

Post by Narcís » Tue Jul 05, 2011 10:20 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply