Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Cannot allocate item. Out of id numbers (max 1000)
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Imm0rtal




PostPosted: Fri Mar 10, 2006 3:13 pm   Post subject: 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 Smile
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Fri Mar 10, 2006 3:51 pm   Post subject: (No subject)

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.

Turing:

Font.Free (my_font)
close : file_stream
Pic.Free (my_pic)
free my_object


EDIT: Please use descriptive titles. "Blast! Foiled Again!" is, though more entertaining, no different than "I need help", as it tells us nothing of your problem.
Imm0rtal




PostPosted: Sat Mar 11, 2006 12:09 am   Post subject: (No subject)

Thats very interesting. Thanks.. Smile
Imm0rtal




PostPosted: Sat Mar 11, 2006 10:40 am   Post subject: (No subject)

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 Smile
Delos




PostPosted: Sat Mar 11, 2006 12:15 pm   Post subject: (No subject)

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




PostPosted: Sat Mar 11, 2006 4:07 pm   Post subject: (No subject)

Thank You so much. I use a max of 12 pictures instead of 1000. Whew. Razz
codemage




PostPosted: Mon Mar 20, 2006 8:44 am   Post subject: (No subject)

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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: