runtime error... memory overload?

would it help if I post the whole code?

Ten hours into the thread, what do you think?