This is my opinion on unterminating loops. They are simply infinite loops. Check your condition as you review your code and you will most likely find your problem hidden there. Fix it and move on.