Weather / Spam / www |
Lyon Weather
aldweb against spam
|
|
|
|
|
|
|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Topic # 1360 |
Text Stack Overflow. |
08/02/2006 @ 21:00 by 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
Answer n° 1 -------- 09/02/2006 @ 20:00 by aldweb
visitor |
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
Answer n° 2 -------- 09/02/2006 @ 20:59 by Nevin
visitor |
Yeah it is just not worth it for the few if any Palm OS 3.0 users. Minoversion 3.5 it is. Thanks, Nevin |
|
|
topic active
topic closed
Sticky
New message -
Correct message
Close topic
Make sticky
|
|
|
|
|
|