Print the value of sendCnt inside the while loop and you'll be able to work out exactly what's going wrong.
edit: *Splosh* missed the boat!