I'm not creating more pages all the time. There are 5 layer of, say 80x60 characters (80 cols, by 60 rows). That's equal to 4800 bytes per layer, meaning 4800*5 = 24K bytes. There's say 8 pages of those, that means 24K * 8 = 192K. So, yea, if I had a Commodore 64 then I'd be in trouble, but I have 2 gigs of ram :P
It's not massive amount of data, and it's not a lot of ram usage. When I quick check the ram from the console, I still have 1.3 gigs free, plus I use TaskInfo to report the ram. It's definately not anything of that nature.
It's possible the problem is not in this particular piece of code. I'm just double checking with my fellow coders to see if I have missed something.
EDIT: OK, I found the problem. It has absolutely no relation with memory leaks or whatnot. Happy! It was another problem I have with things that don't show up on screen but take processor time, and that ti should show up. It's something else I have to fix.
Cheers.
It's not massive amount of data, and it's not a lot of ram usage. When I quick check the ram from the console, I still have 1.3 gigs free, plus I use TaskInfo to report the ram. It's definately not anything of that nature.
It's possible the problem is not in this particular piece of code. I'm just double checking with my fellow coders to see if I have missed something.
EDIT: OK, I found the problem. It has absolutely no relation with memory leaks or whatnot. Happy! It was another problem I have with things that don't show up on screen but take processor time, and that ti should show up. It's something else I have to fix.
Cheers.