what helped me in the past for preventing binges is picking up a craft. I learned to do sewing and embroidery and naalbinding and it helps when I get "nervous" in the evenings.
I also quit watching TV because of the ads. I just cant stand getting all that food shown to me. I now watch DVD or spend my eves on facebook, or playing a game (to distract me when my worries were too bad to talk to someone).
If it is early enough you can also call a friend and talk to them about feeling bad, or take up a chat with someone. I have facebook friends from around the globe so there is always someone online. This will also help you deal better with whatever upsets you than eating.
What also, and then finally, helped was changing my eating times. I later read that this is called intermittend fasting. I now eat all my allowed calories in the evening. I eat a good big, fat satisfying meal for dinner and prepare a snack for later, when that "ummm I want something" comes. that way I am sure I am well fed that time, and preparing that snack WITHIN my calorie allowance takes all the bad feelings about late night snacking away.
Last of it: dont feel alone! Many of us have to fight with this, and we sometimes lose too. Most important is that you wont feel bad after a lapse like that, and jump right back to your track. Try to be proud of you as these moments get less instead of feeling bad for having one. *hugs*