Cat-
It's a good thing you are recognizing your behavior now and doing something about it. The weight loss mentality can mess with your mental wiring, in my experience, or it could be unrelated entirely, but either way I bet there's support to be had over in the depression forum here, and I hope you figure it out and start getting better.