aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Recherche




Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
298 Abonnés
Sites web de la famille

Webmaster - Infos
News Amis
Visites

   visiteurs

   visiteurs en ligne

Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
forum.gifForum - iziBasic - Sujet n°1232

Forum - Forum
iziBasic - iziBasic


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

actif  Sujet n° 1232  Stack Overflow

le 21/07/2005 @ 14:05
par Watts

Anonyme



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.
  Poster une réponse  Haut

[]   


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

Anonyme

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
Ecrire à aldweb   Poster une réponse  Haut

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

Anonyme

visiteur
It is the Code Stack Overflow. I will look at the examples provided.
Ecrire à Watts   Poster une réponse  Haut

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

Anonyme

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.
  Poster une réponse  Haut

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

Anonyme

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"
Ecrire à Watts   Poster une réponse  Haut

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

Anonyme

visiteur
You have made a coding error somewhere, that's all I can say from the information you provide.

Cheers,
aldweb
Ecrire à aldweb   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 



 
^ Haut ^