Reputation: 175
I turned my pc on this morning, and when I started testing some apps, I noticed that no exceptions are thrown (no dialog or anything).
The code just stops executing and nothing happens!
Example:
private void Form1_Load(object sender, EventArgs e)
{
throw new Exception("error");
//anything below will not execute
}
visual studio doesn't show any error dialog, I also tried to run the .exe directly and nothing happens as well...
I tested it with .net 2.0, 3.5 and 4.0! All the same...
any idea whats wrong?
Upvotes: 0
Views: 358
Reputation: 56727
I know of two possible reasons:
AppDomain
that does nothingWhat does the Windows Application event log say?
Upvotes: 0
Reputation: 14478
Visual Studio: CTRL+ALT+E -> Enable "Thrown" under Common Language Runtime Exceptions.
Upvotes: 1