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?
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.
Yes, that is probably it because of the OnControl is handling all of those controls.
Too many CASE expressions will do it. Break up your SELECT statements.
Thanks, will do that.
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?
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.
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 :)
C has a case statement limit too. It is common with LR(1) parsers.
ok, thanks for the info.