StackOverflowException with 31 charts on main form

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Michael
Newbie
Newbie
Posts: 15
Joined: Thu Mar 06, 2003 5:00 am

StackOverflowException with 31 charts on main form

Post by Michael » Tue Mar 21, 2006 10:36 pm

I have copied groups of 6 charts (once added a 7th in the set) over and over to display on the main form, totaling 31 charts. After copying and pasting the last 6 bringing the total up to 31, I get a StackOverflowException when the form is trying to redisplay after processing is complete. In other words, I recompile and run in debug - I have a button on the form which runs the code to fill all the charts - each chart has between 3 to 7 series with 3600 data points. When the processing is complete and the button click code has exited, processing is up in the WinForm (no source) area. The first 6 (the last six I added) charts fill and the form bombs with a StackOverflowException in system.windows.forms.dll.

Please advise.

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

Post by Narcís » Wed Mar 22, 2006 9:50 am

Hi Michael,

Could you please let us know which TeeChart version are you using and send us an example we can run "as-is" to reproduce the problem here?

You can post your files at news://www.steema.net/steema.public.attachments newsgroup.

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

Michael
Newbie
Newbie
Posts: 15
Joined: Thu Mar 06, 2003 5:00 am

Error occurs in onPaint of the form/chart(?)

Post by Michael » Wed Mar 22, 2006 11:22 pm

Error occurs in: system.windows.forms.dll!
System.Windows.Forms.Control.PaintWithErrorHandling(System.Windows.Forms.PaintEventArgs e = {ClipRectangle={X=234 Y=0 Width=162 Height=132}}, short layer = 2, bool disposeEventArgs = false) + 0xf0 bytes

I split the groups of six charts onto different forms thinking that might have something to do with it. Also easier to manage in the long run. The first form's charts get painted (debug output in form's paint rtn). The second window is in progress and it gets to the second chart and bombs out. At this point the first chart that was painted has a red x going through it on the second form.

I am running 1.1.2259.29262. I am having some difficulty reproducing this behavior in a standalone program that only uses Steema TeeChart. The program that is having the problem also uses other controls from other vendors (none of which are on the forms being dealt with when the problem occurs).

I will continue to try to reduce the failing program to the minimum required to generate the error.

Post Reply