This repository was archived by the owner on Jan 20, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathProgram.cs
More file actions
41 lines (37 loc) · 1.22 KB
/
Program.cs
File metadata and controls
41 lines (37 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;
namespace PingoMeter
{
internal static class Program
{
/// <summary> x.x.x program version string. </summary>
public const string VERSION = "0.9.9";
[STAThread]
public static void Main(string[] args)
{
if (Debugger.IsAttached)
{
// Warning!
// Do not use the debugger. This can cause a BSOD.
// This is a known bug in Windows 7, you'll get a BSOD with bug-check code 0x76...
// More: https://stackoverflow.com/questions/17756824/blue-screen-when-using-ping
//Debugger.Break();
//return;
}
try
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
var notificationIcon = new NotificationIcon();
notificationIcon.Run();
}
catch (Exception ex)
{
File.WriteAllText("error.txt", "[PingoMeter crash log]\n\n" + ex.ToString());
Process.Start("error.txt");
}
}
}
}