using Prtracker6;
namespace ExceptionsDemo
{
static class Program
{
[STAThread]
static void Main()
{
//Initialize ExManager
ExManager.ExceptionLoggerAsmx =
"http://www.prtracker.com/ExceptionManagementService/ExceptionLogger.asmx";
ExManager.PrtrackerProjectFolder= "Exceptions Demo";
//Change the above settings to match your situation
//Record some information that will be recorded in the Error Data
ExManager.AddEvent("Starting ExceptionsDemo");
ExManager.AddConfigurationValue("Windows Version", ExManager.GetWindowsVersion());
//Example program code
try
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
//Handle all exceptions not handled at lower levels here
catch (Exception ex)
{
//Display an error dialog that gives the user option to send the exception data
ExManager.DisplayException(ex);
}
}
}
}