If (Successful) { throw new Exception(); }

December 24th, 2009

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.

error

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.

  • http://www.kevindaub.com daub815

    The error is being hidden by the endInvoke of a delegate. Or at least that was a similar issue I saw.

  • James

    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.

  • http://elegantcode.com Jan Van Ryswyck

    If you think that’s bad, then the best is yet to come :-)