|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1360 |
Text Stack Overflow. |
le 08/02/2006 @ 21:00 par Nevin
|
Hi, I have recently recieved the error "Text Stack Overflow" when trying to compile with Izibasic. So I read the compiler errors section of the Izibasic manual and set as many constants (ex. CONST A$="Hi!") as possible. I got my text stack down to 199/200, and it compiles, but when I attempt to run the application I get the "Text Stack OverFlow Error" message again. The application runs fine if I set the minoversion to 3.5, but I was wondering how low I would have to get my text stack before it will execute properly without the minoversion 3.5 and if there are any other tricks I can use (besides chaining, it would be to difficult for this application) to bring my text stack size down.
Thanks for your help again, Nevin |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 09/02/2006 @ 20:00 par aldweb
visiteur |
Hello Nevin,
In theory, if your stack goes down to 199/200 at compilation time, the "Text Stack Overflow Error" should not happen at runtime. But, it is always better to keep a small free stack of 5 to 10, so not having the text stack over 190.
Chaining would not solve the issue as Text and Number stacks are passed while chaining, only the Code stack is reset.
So, the only "easy" way is indeed to set MINOSVERSION to 3.5. It is not my fault if the heap memory was very limited in the earlier Palm devices...
Another way would be to use String resources in a resource file and load them whenever needed in variables with a PP applet I wrote not long ago. This would be more work and you would have to make sure that doing so would not put your Numbers and Code stacks in danger.
So, the only real question is: is your project worth to keep it compatible with devices equipped with Palm OS < 3.5 ? Will there many users equipped with such old devices interested with your application?
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 09/02/2006 @ 20:59 par Nevin
visiteur |
Yeah it is just not worth it for the few if any Palm OS 3.0 users. Minoversion 3.5 it is. Thanks, Nevin |
|
|
sujet actif
sujet clos
Important!
Nouveau message -
Rectifier message
Clôturer sujet
Remonter
|
|