|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Topic # 1392 |
#Error: Jump Stack Overflow# |
27/04/2006 @ 05:31 by Nevin
|
Hi,
I have to different programs that normally run fine, but after several minutes of use produce the following error: #Error: Jump Stack Overflow#
I assume that I am somehow not clearing the # stack, my other program I get a similar error for Text Stack. How do I make sure that these are cleared so that my program does not run into problems after being run for long periods of time?
Thanks for your help, Nevin |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1 -------- 27/04/2006 @ 13:25 by bh77a
visitor |
Hi,
What do you have the minimum OS set to? In regards to the Jump Stack Overflow, do you exceed the limit of 255 GOSUB/GOTO jumps? To help with the text stack overflow have you tried setting some variables as constants? Of course, these are all just random thoughts gleaned from the information regarding these errors that is present in the manual... I am by no means an expert.
Regards, bh77a |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 2 -------- 27/04/2006 @ 14:52 by bh77a
visitor |
Hi again,
You might want to check into clearing the text and number stack from time to time using the CLEAR [v-v|c-c] statement. Information is provided on this on page 19 of the iB manual.
Regards, bh77a |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 3 -------- 27/04/2006 @ 19:33 by aldweb
visitor |
In regards to the Jump Stack Overflow, do you exceed the limit of 255 GOSUB/GOTO jumps?
This is it, some instructions use this stack, like for FOR/NEXT, REPEAT/UNTIL, GOSUB/RETURN, but not GOTO dear bh77a (did I write a dummy thing in the user manual?). So, your application must be made of some kind of recursive GOSUB/RETURN that keeps incrementing until you reach the overflow... Try optimizing your code somehow else, linear programming instead of recursive programming...
For the Text Stack, it must be a similar issue while using the A$() array variable, overpassing its upper limit as defined with the DIM statement.
You might want to check into clearing the text and number stack from time to time using the CLEAR [v-v|c-c] statement. Good try bh77a, but this will not make it. The A-Z and A$-Z$ variables are at fixed positions and clearing them will not release their reserved space. And, indeed, iziBasic manages memory allocation in a fixed way. There is no freeing of memory possible at execution time with things like REDIM for arrays or clearing a single variable.
Cheers, aldweb
|
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 4 -------- 27/04/2006 @ 21:06 by bh77a
visitor |
Hi Aldweb,
Thanks for the clarification. I only quoted the manual on Page 75 referring to Compiler Errors: Jump Stack Overflow... "Advice: decrease the number of labels and (or) GOSUB/GOTO instructions." ;)
Regards, bh77a/Brian |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 5 -------- 28/04/2006 @ 09:19 by aldweb
visitor |
Hello bh77a,
This is an error in the manual. The early versions of iziBasic would require the jump stack for GOTO, this is no more the case since ages. I will update the manual accordingly in the next release.
Cheers, aldweb
|
|
|
topic active
topic closed
Sticky
New message -
Correct message
Close topic
Make sticky
|
|