|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Topic # 1235 |
#Error: Object ID out of range # |
24/07/2005 @ 02:22 by Ivo
|
Hi there
My Palm is a Zire 72. How may i use more than 255 objects (ID number greater than 255) ? In page 37 of the manual says that the range of ID is 1...999, but i receive the message when trying to use Id = 256
Thanks |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1 -------- 24/07/2005 @ 10:35 by aldweb
visitor |
Hello Ivo,
The range should indeed be [1..999]. On what type of object do you get this error? Could you post here the one or two lines of code that are involved in this error message?
Cheers, aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 2 -------- 24/07/2005 @ 19:26 by Khertan
visitor |
Pffiooou ... 255 Objets ... can i know what are you trying to do ...? Maybe u can use less |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 3 -------- 26/07/2005 @ 01:41 by Ivo
visitor |
Hi aldweb
I'm trying to do a game ("navy battle"? in potuguese is "batalha naval") with a grid of 15 x 15 pushbutton. a sample of code is: Begin 'loop for create all buttons or gosub criabtns end criabtns: s=0 x=4 y=24 n=300 pushbutton #n,".",s,x,y,w,h return
Thanks |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 4 -------- 26/07/2005 @ 09:57 by aldweb
visitor |
Hello Ivo,
Indeed there is an issue for objects with an ID (#n) > 255. It does not seem to be related to my own iziBasic source code, but potentially from the compiler used for iziBasic being the great PP compiler.
So, let's wait for a solving.
Meanwhile, you can easily optimize your code and Khertan is right: the use of many objects is not really recommended as they reserve a lot of space in the memory heap... even though your way of doing was really helpful to figure out this bug
For a "batalha naval" ("bataille navale" in French ) kind of game, I would recommend you, if you allow me to give you an advice, to use images to draw the game board and to track the pen position to know what cell in the grid was chosen by the user. This way of doing would be much more memory optimized...
Cheers, aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 5 -------- 26/07/2005 @ 23:23 by Ivo
visitor |
Hi aldweb
I will try to use boxfilled to put the pieces and posx, posy to capture where the player taped in (have you any idea?).
Thanks |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 6 -------- 27/07/2005 @ 10:50 by aldweb
visitor |
Hello Ivo,
I will send you via e-mail a beta release of the next version that I built yesterday evening which solves this issue for object IDs > 255. Then, it is up to you: or keep working on your current source code or work on the proposed optimization
Cheers, aldweb
|
|
|
topic active
topic closed
Sticky
New message -
Correct message
Close topic
Make sticky
|
|