Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
From: Lennart Thelander
Subject: GNU Pascal and warnings.
Date: 18 Feb 2009, 16:12:37
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.
Regards
Lennart Thelander
System Developer
Lennart.Thelander@atex.com
Phone +46 (0) 42 25 39 05
Fax +46 (0) 42 25 39 29
Atex Media AB
Garnisonsgatan 10C
S-254 66 Helsingborg
SWEDEN
Bringing new life to your media business
www.atex.com
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
| Author | Subject | Date |
|---|---|---|
| Maurice Lombardi | GNU Pascal and warnings. | 18 Feb 2009, 16:04:55 |
| Frank Heckenbach | GNU Pascal and warnings. | 18 Feb 2009, 18:31:20 |
Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.
Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.
This page was created by Crystal 0.999 (Linux 2.4.27/i686).