My program keeps crashing when it closes. When I debug it, it points me to line 664 in crt0dat.c (I assume it's something to do with memory). Anyways, anyone got any ideas for what I should look for? I've got to much code that could be the problem, so hopefully someone can point me in the right direction.

Cheers.