24
Dec
2009
If (Successful) { throw new Exception(); }
So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened. After it successfully installed, I was prompted to send an error report.
Since when is a successful operation a problem? Now, of course, I am assuming this is intentional and is transmitting information back to Microsoft to tell them that it was successful. But, I can see how easy it would be for someone to mistaken this for a legitimate error. Then again, maybe it is.
The error is being hidden by the endInvoke of a delegate. Or at least that was a similar issue I saw.
http://en.wikipedia.org/wiki/Operation_completed_successfully
I’ve seen this a number of times, happens when something calls GetLastError() too late, after another call which affects the global error number.
If you think that’s bad, then the best is yet to come 🙂