I don't think it's the actual size of the stack space that's the
issue, but rather how much local and parameter data can be
accomodated on the stack for each method call. Here's what Mars said
about this a while back.
At 12:28 PM -0700 4/18/05, Mars Saxman wrote:
Local variables and other method-related data are stored on the stack. In
the PowerPC architecture, each method gets up to 32k of space for its data.
The method must be extremely large to hit that limit; it probably contains
an extraordinary number of expressions which require intermediate data
storage.
Breaking up a method can help as well as reducing the number of
parameters and local variables.
Recursion isn't the cause of this particular problem since each
recursive call gets it's own stack frame. A recursion error would
occur at runtime. This is a compile time error where the compiler has
run out of space to allocate in the stack frame.
Regards,
Joe Huber
At 10:33 PM -0500 8/5/06, Brad Taylor wrote:
I found two work-arounds:
1) I split the method throwing the error into two methods
2) I moved back to RB 2006r1 and my application compiled without complaint
On Aug 5, 2006, at 7:17 PM, Thomas Moore wrote:
I requested support on this and RealSoftware said that this limit will
be removed in the next release of RB. In my app it was the menu
method that went over (it did compile fine under 2006r2). In the case
of the menu, the only options are to use 2006r2 or to dynamically
generate at least some of the menuitems at runtime.
Marc
On 8/5/06, Sven E Olsson <[EMAIL PROTECTED]> wrote:
On 2006-08-05, at 7:52 PM, Thomas Moore wrote:
I have just tried recompiling an old program in RB2006r3 (Mac OSX
10.4.7) and got a compiler error message that I have not seen
before: "This method uses 32k of stack space, but the limit is
32k". (I get the same message in 2006r2, can't check for versions
before that.) Is this a new limitation, or a bug? Is there a
workaround or a way to increase this limit? I don't think that it
will be easy to rewrite the method so that it uses less stack space
(not even sure how to begin...)
Any help would be appreciated! Thanks, Tom Moore
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>