Quote Originally Posted by MutantJohn View Post
Okay, so here's the thing, my code is actually more of project and it is quite long so posting it might not be an option.

Would this be the time to learn gdb?
It's always a good time to learn gdb. If you're on Unix, Linux or OSX also look into valgrind.