Well first prove that it only runs once, and then have to start looking from there. Don't put a sendto inside of a large loop like that and then claim that it only runs once. KNOW FOR SURE how many times your loop is running. Debug through it if you have to. If it turns out to only run once then start looking elsewhere.