Page 1 of 1
StackOverflowException with 31 charts on main form
Posted: Tue Mar 21, 2006 10:36 pm
by 8120717
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.
Posted: Wed Mar 22, 2006 9:50 am
by narcis
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.
Error occurs in onPaint of the form/chart(?)
Posted: Wed Mar 22, 2006 11:22 pm
by 8120717
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.