NanoByte.Common  2.9.0
NanoByte.Common.Controls.ErrorReportForm Class Reference

Presents the user with a friendly interface in case of an error, offering to report it to the developers. More...

Inheritance diagram for NanoByte.Common.Controls.ErrorReportForm:

Static Public Member Functions

static void SetupMonitoring (Uri uploadUri)
 Sets up hooks that catch and report any unhandled exceptions. Calling this more than once has no effect. More...
 
static void Report (Exception ex, Uri uploadUri)
 Displays the error reporting form. More...
 

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used. More...
 

Detailed Description

Presents the user with a friendly interface in case of an error, offering to report it to the developers.

This class should only be used by System.Windows.Forms applications.

Member Function Documentation

◆ Dispose()

override void NanoByte.Common.Controls.ErrorReportForm.Dispose ( bool  disposing)
inlineprotected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.

◆ Report()

static void NanoByte.Common.Controls.ErrorReportForm.Report ( Exception  ex,
Uri  uploadUri 
)
inlinestatic

Displays the error reporting form.

Parameters
exThe exception to report.
uploadUriThe URI to upload error reports to.

Modal to all windows on the current thread. Creates a new message loop if none exists.

◆ SetupMonitoring()

static void NanoByte.Common.Controls.ErrorReportForm.SetupMonitoring ( Uri  uploadUri)
inlinestatic

Sets up hooks that catch and report any unhandled exceptions. Calling this more than once has no effect.

Parameters
uploadUriThe URI to upload error reports to.

If an exception is caught any remaining threads will continue to execute until the error has been reported. Then the entire process will be terminated.


The documentation for this class was generated from the following files: