This advise against quitting you find everywhere is just wrong. Sure you should give it a fair shake, but if you are on a dead end, never quitting means never winning. If something doesn't work, it's possible you should just stop doing it and try something else.
I donno, I've come across or read about fair number of people who worked on a crazy idea for a very long time, as if they were planning to throw their life away chasing that idea. Some had a breakthrough and ended up being a huge win. But I'm sure there are many many more who just ended up nowhere. So, I guess it's a gamble.