Updated the code, now works with larger than 32*32.
Try testing my code "as is" before splicing it into yours. That would explain the error at cleanup.
Its still got a bit of testing to do, which I wont get to till after 7pm tonight.
Its time for bed...
[EDIT] Damn, I gotta drive home from work first....
Last edited by EvilSOB; 07/07/09 21:20.