nerdexam
Microsoft

70-518 · Question #14

You are designing a complex and critical Windows desktop application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. You plan to implement a logging strategy for the…

The correct answer is D. Create a global WIN 32 unhandled exception filter. See the full explanation below for the reasoning.

Question

You are designing a complex and critical Windows desktop application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. You plan to implement a logging strategy for the application. You need to record all unexpected errors that occur in the application. What should you do?

Options

  • ASubscribe to the unhandled exception event handler for the AppDomain object.
  • BSubscribe to the unhandled exception event handler for the application's dispatcher on the
  • CCreate a generic catch (Exception e) block in the Main method of the application.
  • DCreate a global WIN 32 unhandled exception filter.

How the community answered

(46 responses)
  • A
    15% (7)
  • B
    9% (4)
  • C
    4% (2)
  • D
    72% (33)

Community Discussion

No community discussion yet for this question.

Full 70-518 Practice