I've been there. The last time was 3 months ago. I was a year in and still no release. The boss changed his mind on design more times than I can count, which usually meant scrapping the old code and starting over.
I finally quit. It took me a couple of months to recover.