Have you found out what the sum of all that is before it is used as the while condition?

It looks fine to me (the first one that is) so perhaps the condition equals 0 so the while never starts.