Computer Science Canada

out of ID numbers

Author:  gafiga [ 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?

Author:  michaelp [ Sat Jun 21, 2008 8:26 pm ]
Post subject:  RE:out of ID numbers

It would help if we could see your program first.

Author:  gafiga [ Sat Jun 21, 2008 8:50 pm ]
Post subject:  Re: out of ID numbers

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

Author:  TheGuardian001 [ 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.


: