IonicWind Software

Aurora Compiler => General Discussion => Topic started by: kryton9 on September 24, 2006, 12:51:46 PM

Title: overflow error
Post by: kryton9 on September 24, 2006, 12:51:46 PM
I am getting a (522) Internal compiler overflow.

This is from a dialog with lots of controls, it starts at the 153'd control and on and gives an error for those after.

I have 2 gigs of RAM, so I wouldn't think that is the issue. Is there a limit to controls in one dialog?
Title: Re: overflow error
Post by: Parker on September 24, 2006, 01:08:09 PM
Can I see the code? The internal compiler overflow error happens when there are too many operations in an expression or too many nested blocks, or something similar.
Title: Re: overflow error
Post by: kryton9 on September 24, 2006, 01:14:29 PM
Yes, that is probably it because of the OnControl is handling all of those controls.
Title: Re: overflow error
Post by: Ionic Wind Support Team on September 24, 2006, 01:18:04 PM
Too many CASE expressions will do it.  Break up your SELECT statements.
Title: Re: overflow error
Post by: kryton9 on September 24, 2006, 01:19:38 PM
Thanks, will do that.
Title: Re: overflow error
Post by: Kale on September 24, 2006, 01:24:36 PM
Quote from: Paul Turley on September 24, 2006, 01:18:04 PM
Too many CASE expressions will do it.  Break up your SELECT statements.

Why does it do that? Is this a limitation on the compiler? or on something else?
Title: Re: overflow error
Post by: Parker on September 24, 2006, 01:29:49 PM
Yes, the stacks are limited to 100 nodes, so if you have more than 100 case statements it cannot push the extras onto the stack. It's not an easy number to change either, since it's written all over the compiler.
Title: Re: overflow error
Post by: kryton9 on September 24, 2006, 01:32:39 PM
Breaking up the case statements, solved it and is really easy to do, so nothing to worry about. Just nice to know that it is easilly solved :)
Title: Re: overflow error
Post by: Ionic Wind Support Team on September 24, 2006, 02:56:57 PM
C has a case statement limit too.  It is common with LR(1) parsers. 
Title: Re: overflow error
Post by: Kale on September 24, 2006, 03:21:50 PM
ok, thanks for the info.