Click here to Skip to main content
15,894,646 members
Articles / Web Development / HTML

Catch All Bugs with BugTrap!

Rate me:
Please Sign up or sign in to vote.
4.34/5 (84 votes)
31 Jan 2009MIT5 min read 1.9M   9.1K   293  
A tool that can catch unhandled errors and exceptions, and deliver error reports to remote support servers
using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace BugTrapNetTest
{
	static class Program
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main()
		{
			// Note:
			//
			// You  are advised to redistribute Windows forms applications
			// with  manifest  file  in order  to fix  a conflict  between
			// different  versions  of  Windows Common  Controls  library.
			// If  you won't supply  a manifest  file, BugTrap  may create
			// some handles using older version of this library regardless
			// of Application.EnableVisualStyles() call.
			//
			// The following steps may be taken to resolve this issue:
			// 1. copy app.exe.manifest  file  from  this  project to your
			// own project.
			// 2. open  project properties  and add the  following command
			// to post build events:
			// copy "$(ProjectDir)app.exe.manifest" "$(TargetPath).manifest"

			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			Application.Run(new MainForm());
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions