
-----------------------------------
Imm0rtal
Fri Mar 10, 2006 3:13 pm

Cannot allocate item. Out of id numbers (max 1000)
-----------------------------------
"Cannot allocate item. Out of id numbers (max 1000)"

Has there been any dicussion on how this error can be avoided?

Thanks  :)

-----------------------------------
Cervantes
Fri Mar 10, 2006 3:51 pm


-----------------------------------
Don't use so many pictures or fonts or whatever it is your using a lot of.

Free your fonts, close your files, free your pictures when you're done with them. Freeing objects might help too.


Font.Free (my_font)
close : file_stream
Pic.Free (my_pic)
free my_object


EDIT: 

-----------------------------------
Imm0rtal
Sat Mar 11, 2006 12:09 am


-----------------------------------
Thats very interesting. Thanks..  :)

-----------------------------------
Imm0rtal
Sat Mar 11, 2006 10:40 am


-----------------------------------
Is there a way to display how many picID's I have running? as a variable?

Example: does turing have a function/command that gets how many id's are currently running and allows that number to be displayed to a variable as an integer.

Thanks  :)

-----------------------------------
Delos
Sat Mar 11, 2006 12:15 pm


-----------------------------------
Yes and no.

There does not exist a fcn, per se, in which you could display the number of pic streams open.  You could, technically, overcome this by using a flexible array and storing every new pic in that array alone, and then displaying its upper bound.  This is needless though.  Instead...

Before you run your programme next time, do the following:
Run -> Show Debugger Menu |  Debugger -> Show Allocated Objects.
When you run, a list of all pic-streams will be available in this new window.

-----------------------------------
Imm0rtal
Sat Mar 11, 2006 4:07 pm


-----------------------------------
Thank You so much. I use a max of 12 pictures instead of 1000. Whew.  :P

-----------------------------------
codemage
Mon Mar 20, 2006 8:44 am


-----------------------------------
For interest's sake:

you can also, if you need to dynamically, keep track of what the integer number IDs are for the pictures you're using (since all pics are refernced through int variables).

Turing starts at around 7000 and keeps going.
