Spécial ! |
 Version mobile de l'aldweb Site m.aldweb.com  Ni Français, ni Anglais ?Essayez donc l'un de ces drapeaux : ![[pt]](img/pt.gif)
|
|
Météo / Spam / www |
Météo Lyon

aldweb contre le SPAM 


|
|
|
 |
|
 |
|
- Forum
- iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1232 |
Stack Overflow |
le 21/07/2005 @ 14:05 par Watts

|
I have exceeded my stack size. I am trying to figure out how to get around this. The command chain seems to be a possible alternative. Can you give any pointers on using this function and a simple example of how to use it. |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 21/07/2005 @ 15:17 par aldweb

visiteur |
Hello Watts,
There are 4 stacks in iziBasic: 1. a Jump Stack: if this is the one in overflow, then you better check all your GOSUB/GOTO/RETURN... 2. a Number Stack and a Text Stack for constants, variables and arrays. If one of these 2 is in overflow, then the only workaround is to extend the MINOSVERSION compiling directive, but with limited compatibility with older devices as a counterpart. 3. a Code Stack. Then, there are 2 ways to extend it: 3a. either the MINOSVERSION use (Code Stack may then evolve from 4000 up to 24000 bytes size); 3b. or use the CHAIN statement.
I guess that you are talking about a "Code Stack Overflow" since you also talk about the CHAIN command 
There are 2 sample programs shipped with iziBasic that show you how to deal with CHAINed segments of codes: Numerus (3 segments of codes CHAINed) and iBAddress (2 segments of codes CHAINed).
As Numerus and iBAddress are both provided in 2 versions (1 full file or 2/3 CHAINed segments files), you will easily understand the little differences to apply to your current source code by comparing their versions of source codes.
The main trick to know is that when using CHAIN, the execution pointer always move to the BEGIN statement of the new segment. Then, the idea is to set some variable before CHAINing to tell the CHAINed segment what to do.
Cheers, aldweb |
|
 |
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2 -------- le 21/07/2005 @ 16:08 par Watts

visiteur |
It is the Code Stack Overflow. I will look at the examples provided. |
|
 |
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 3 -------- le 21/07/2005 @ 19:30 par Watts

visiteur |
I have the MINOSVERSION as high as possible 4.1 to be exact. I have tried using the CHAIN command again refering to the examples you referenced. The code is much to long to post here. Would it be possible for me to email it to you? The program will probably double in size by the time I get done. Therefore I need to resolve this issue somehow.
|
|
 |
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 4 -------- le 21/07/2005 @ 21:07 par Watts

visiteur |
I have managed to get it to compile. I have added the CHAIN "program#2" statement once at the begining of the first program#1 after the required program directive statements. When I click on the icon for the program to run it displays the error "Exe Pointer Out Of Range" |
|
 |
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 5 -------- le 22/07/2005 @ 13:16 par aldweb

visiteur |
You have made a coding error somewhere, that's all I can say from the information you provide.
Cheers, aldweb |
|
 |
 sujet actif
 sujet clos
 Important!
 Nouveau message -
 Rectifier message
 Clôturer sujet
 Remonter
|
|
 |
|
 |
|