One of my recently posted questions attracted a lot of interest and had a 500 point bounty attached to it. As I'm fairly new to SO and never had a question attract much interest (usually I end up answering my own question some time later when I get it working or a work around) I'm not sure of the protocol for selecting answers.
There were a number of helpful posts including one quite detailed. After a couple of days I found a solution to my problem and posted the answer and code (GIST) and selected that as the answer. It seems its not the done thing on SO to answer your own questions and folks are sensitive to it when a large bounty is involved. I got downvoted several times and one helpful chap got me into a chat room to explain the protocol of comments and answers on SO. Although I thought that it was counter-intuitive not to mark the working solution as an answer (especially for future reference), I was willing to go with the community approach and I deselected my answer and selected the answer that provided more background but didn't have the solution.
I though it was done and a lesson for me not to answer my own questions, however the bounty owner recently posted back that he expected working code and my answer is the right one, encouraging me to raise it with mods. The bounty owner specified a working solution as a requirement and I was the only one to provide working code. At this stage I have left the other answer as the tagged answer.
I really don't want to cause a fuss, I enjoy using this site as it is extremely helpful (I wish we had something like this when I was a full time prog years back....) but given the back on forth on this question I though I'd post here to help me determine how to handle better next time. I'm not interested in the bounty BTW.