Closed alexwalterbos closed 10 years ago
This is actually a visual studio problem. It occurs because one thread throws an exception and doesn't catch it, after that the exception wil go to the TPL layer and is catcher by the awaiting function.
Two ways to fix:
1) Go to Tools > Options > Debug > "Just My Code"
and make sure it is disabled. This ensures that the program doesn't break on thrown async exceptions
2) Run the program without a debugger at all. If you are not debugging, you can run without debugger. Just go to the build .exe file or go to Debug > "Run without debugger"
or hit CTRL + F5
Curious about the details? Read the source! source: http://blogs.msdn.com/b/pfxteam/archive/2010/01/11/9946736.aspx
Thanks!
When I use the
stop
button, the debug complains about an exception not being caught.