views:

146

answers:

2

I have a simple Windows App written in Visual Studio 2008 (.NET 3.0, C#).

Without making any change to the project, solution or Visual Studion (from what I can remember), something weird is happening: when I debug (or run) my application, when it hits an error, Visual Studio does not show me any messagebox with the error, and does not stop execution. It "looks" like nothing happended... the code after the error is not executed, but everything else continues to behave like nothing had happened.

Any ideeas about what might be wrong? I don't think it's a big deal, but I can't seem to find it.

Thanks!

A: 

Do you have a try catch block? See if your catch block has code to handle the exception (either a messagebox showing what the exception is or logging that exception).

HTH

Raja
+1  A: 

Click Debug, Exceptions (Ctrl+D, E) and tell Visual Studio to break on all exceptions.

Note that this will break on all thrown exceptions, not just all unhandled exceptions; that may not be what you want.

SLaks
In Debug - Exceptions I checked all the options in column "Thrown". They were all unchecked, and only User-unhandled column was checked. It works as a charm now, thank you very much!
Diana