VS2010 Invalid Cross Thread Causes Immediate Shutdown...
Posted on 2011-05-04
We recently started migrating from VS2005 to VS2010. One of the differences I found was that in VS2005 when an "Invalid Cross Thread" was encountered, the application (in debug mode) would crash and highlight the line where the error was encountered. This was great because you got to see the error.
In VS2010...the application simply terminates. No error at all is shown in the IDE when debugging. Is there a "setting" in VS2010 to make it behave like it did in previous incarnations? I find it ridiculous that that Microsoft programmed the IDE to just "quit" the running application on a Cross Thread error without any other information. It took me a long time to find WHERE my application was "crashing" to begin with because of this problem, and then it took me more time after that to realize the reason was a Cross Thread operation.