Lennart Thelander a écrit:
Hello.
For quite many functions/Procedures, I get two warnings: warning: frame size too large for reliable stack checking warning: try reducing the number of local variables
Say what? Reducing the number of local variables? Here's an example:
PROCEDURE TTextEditItem.HandleKey(VAR theEvent:EventRecord); VAR i : SInt16; pt : Point; theChr : Char; theKey : SInt16; shift : BOOLEAN; option : BOOLEAN; control : BOOLEAN; command : BOOLEAN; lineHeight, ascent : SInt16; theStyle : TextStyle;
I say that's a small amount of (small) local variables, so how can there be too many?
And what is a "frame" and how can I reduce its size? Or better: How do I allow for a larger frame size?
This is GNU Pascal 3.4.6u2 on Mac OS X and Xcode 2.5.
I had a similar message with stack checking on on a Fedora core 6 system with a 64 bits cpu. But I had indeed a large array as local variable, thus allocated on stack. So I supposed it was normal and simply turned off stack checking. May be there is a problem with 64 bits cpu's. What is yours ?
Maurice