Advice is best given and received when it has been asked for. Unwanted advice often times tends to irritate the recipient. Even if someone is telling you all about a problem they are having, more times than not, they don't actually want any advice from you. Most times they only want a chance to express it all to someone. To get it off their chests and out of their heads, and to receive in return only some consolation, some commiseration. If at one of these times you feel overly obliged to offer advice, try to bite your tongue, to hold it back, hold it in. There are really only two times to offer advice unsolicited: one is to keep someone from doing something that would cause immeasurable harm. The other is if you truly could not live with yourself afterwards for not offering the advice.
These are my views on the subject as a giver and as a receiver of advice. What about you? Do you always give it? Always welcome it? Ignore it?