April 24, 2024, 07:49:39 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


overflow error

Started by kryton9, September 24, 2006, 12:51:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kryton9

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?

Parker

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.

kryton9

September 24, 2006, 01:14:29 PM #2 Last Edit: September 24, 2006, 01:45:49 PM by kryton9
Yes, that is probably it because of the OnControl is handling all of those controls.

Ionic Wind Support Team

Too many CASE expressions will do it.  Break up your SELECT statements.
Ionic Wind Support Team

kryton9


Kale

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?

Parker

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.

kryton9

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 :)

Ionic Wind Support Team

C has a case statement limit too.  It is common with LR(1) parsers. 
Ionic Wind Support Team

Kale