alexwalterbos / image-reconstruction

Neural Network seminar image reconstruction project
0 stars 0 forks source link

Exception when stopping process #13

Closed alexwalterbos closed 10 years ago

alexwalterbos commented 10 years ago

When I use the stop button, the debug complains about an exception not being caught.

image

festen commented 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

alexwalterbos commented 10 years ago

Thanks!