This happens to me all the time.
I have a problem with Sonar that's been bugging me for a while. So I decide to open a thread here to ask about it, and the very act of typing it out gives me an idea what I should try and I try that and it works and so I cancel my thread entry.
That just happened again. Hilarious.