Winforms unceremoniously terminates with an "unhandled exception"

The program spits out one of these fields, saying that an unhandled exception has occurred, and the application should exit. The only key I can solve is in the event log:

Event Type: Error Event Source: .NET Runtime 2.0 Error Message Event Category: None Event ID: 5000 Date: 1/9/2009 Time: 8:47:44 User: N / A Computer: DADIEHL Description: EventType clr20r3, P1 crm.client.exe, P2 1.0.1.0, P3 49667f61, P4 mscorlib, P5 2.0.0.0, P6 471ebc5b, P7 c35, P8 59, P9 system.formatexception, P10 NIL.

So, I added the following code to program.cs:

try
{
    Application.Run(new WindowContainer());
}
catch (Exception exc)
{
    new DialogException(exc).ShowDialog();
}

, , , . , , , . - - , ?

+3
2

, .

, :

, , .

, UI, .NET 1.1 2.0. , . app.config, , , , , , . , , .

+15

, , , WinDbg SOS, - .

Real World w/WinDbg

UnhandledExceptionEvent. MSDN:

UnhandledExceptionEvent

0

All Articles