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

Username:   Password: 
 RegisterRegister   
 out of ID numbers
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
gafiga




PostPosted: Sat Jun 21, 2008 8:11 pm   Post subject: out of ID numbers

when i draw my pictures they only last so long before it says its out of ID numbers.
but when i Pic.Free it and then run my program it says "Pic was freed" and doesn't work.
anyone know why its doing this?
Sponsor
Sponsor
Sponsor
sponsor
michaelp




PostPosted: Sat Jun 21, 2008 8:26 pm   Post subject: RE:out of ID numbers

It would help if we could see your program first.
gafiga




PostPosted: Sat Jun 21, 2008 8:50 pm   Post subject: Re: out of ID numbers

nevermind. i think i got it now. thanks anyways.
TheGuardian001




PostPosted: Sat Jun 21, 2008 8:54 pm   Post subject: Re: out of ID numbers

is you Pic.New/Pic.FileNew code inside a loop? if so, turing will give a new id number each time the loop repeats.
so if you have

Turing:

loop
pic := Pic.FileNew("blank.bmp")

do more stuff
end loop


turing quickly runs out of new numbers to give that picture. If thats the problem, just move the Pic.FileNew command out of the loop. if that's not the problem, show the code thats giving errors.
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  [ 4 Posts ]
Jump to:   


Style:  
Search: