aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1392

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

active  Topic # 1392  #Error: Jump Stack Overflow#

27/04/2006 @ 05:31
by Nevin

Anonymous



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
Write to Nevin   Post an answer  Top

[]   


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

Anonymous

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
Write to bh77a   Post an answer  Top

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

Anonymous

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
Write to bh77a   Post an answer  Top

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

Anonymous

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
Write to aldweb   Post an answer  Top

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

Anonymous

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
Write to bh77a   Post an answer  Top

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

Anonymous

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
Write to aldweb   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^