Computer Science Canada Allocation Error |
Author: | prdukt [ Mon May 23, 2005 7:20 pm ] | ||||
Post subject: | Allocation Error | ||||
Just starting to work on some extra credit work. I have a character who walks in a 5 image pattern (Not employing this yet). When I run this it times out after roughly 3 seconds because "Cannot Allocate Item. Out of id numbers (max 1000)". This is highlighted in:
Anyone have any idea how i can fix this up? (Global.t is just my View.Set information) |
Author: | jamonathin [ Mon May 23, 2005 7:59 pm ] |
Post subject: | |
That's because you're not freeing the picture. Whenever you make a variable equal to a different picture, you need to free it. It can only change pictures about 171 times (don't ask why or how I know this). But it also doesn't make sense why you're constantly making that variable equal to that pic. It's running constantly in the loop. Just take out those vars and put them at the top of your code, don't keep them in the loop unless you plan on changing them constantly. |