When you're eating because of frustration or stress you need to make sure you have something you can eat as much as you want of, e.g. raw veggies. You shouldn't have to think about portion control when you're upset. I eat when I'm angry and it really helps me, as insane as it sounds, to gnaw on something crunchy--celery sticks, cucumber slices, bell pepper strips. You can even take out some of your stress chopping the veggies the night before!

Pack them in a tupperware with a little salt and/or fennel seed and/or other no-cal, non-messy seasonings.
If you hear the siren call of the vending machine, how about getting a Diet Coke when you get there? Aspartame is bad for you, I know, but something about that hit of cold sweet fizzy drink really satisfies me when I want a junk food treat, and it's certainly better for you than regular Coke. Or, take along whatever no-cal beverage is a treat for you--Perrier, or diet Snapple? I think it's key to treat & pamper yourself in healthy ways, to avoid "treating" yourself in self-sabotaging ways.
In my case, I love sparkling water, so I buy tons of it and drink it all the time, even though it's obviously more expensive than tap water, because it feels like a treat, and thus I know I will really drink it, rather than letting myself get too thirsty and then eating something off-limits because it's there.
Good luck!!