Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Agent.Configuration Namespace / ListenerConfiguration Class / CatchUnhandledExceptions Property

In This Topic
    CatchUnhandledExceptions Property
    In This Topic
    When true, any unhandled exceptions (which are always fatal) will be recorded by the Agent before the application exits.
    Syntax
    'Declaration
     
    
    Public Property CatchUnhandledExceptions As Boolean
    public bool CatchUnhandledExceptions {get; set;}
    Remarks

    If disabled (false), the Agent will not listen for UnhandledException events. Your own UnhandledExceptionEventHandler may still send exceptions to the Agent explicitly by calling Log.RecordException or Log.ReportException.

    If enabled, the Agent's handler may be called before your own UnhandledException handler or after it depending on the timing of registering for the event. If ReportErrorsToUser is also enabled, the Agent's event handler will block, preventing further event handlers from being called, until the alerting dialog window is closed by the user.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also