From 190578953c7acfd1c204b7a602f5eb68ddf6731d Mon Sep 17 00:00:00 2001 From: RKrom Date: Wed, 6 Feb 2013 13:15:13 +0000 Subject: [PATCH] Added a link to a Microsoft support link for Bug [#1420] in the exception, might still be good if we can change the bug for so it is more clear what can be done... git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2465 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Forms/MainForm.cs | 8 +++++++- Greenshot/Helpers/EnvironmentInfo.cs | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Greenshot/Forms/MainForm.cs b/Greenshot/Forms/MainForm.cs index 59aacf8f1..eaf2064f0 100644 --- a/Greenshot/Forms/MainForm.cs +++ b/Greenshot/Forms/MainForm.cs @@ -325,7 +325,13 @@ namespace Greenshot { // // The InitializeComponent() call is required for Windows Forms designer support. // - InitializeComponent(); + try { + InitializeComponent(); + } catch (ArgumentException ex) { + // Added for Bug #1420, this doesn't solve the issue but maybe the user can do something with it. + ex.Data.Add("more information here", "http://support.microsoft.com/kb/943140"); + throw ex; + } this.notifyIcon.Icon = GreenshotPlugin.Core.GreenshotResources.getGreenshotIcon(); this.Icon = GreenshotPlugin.Core.GreenshotResources.getGreenshotIcon(); diff --git a/Greenshot/Helpers/EnvironmentInfo.cs b/Greenshot/Helpers/EnvironmentInfo.cs index 6fd983970..cee4597e4 100644 --- a/Greenshot/Helpers/EnvironmentInfo.cs +++ b/Greenshot/Helpers/EnvironmentInfo.cs @@ -130,7 +130,7 @@ namespace Greenshot.Helpers { foreach (object key in ex.Data.Keys) { object data = ex.Data[key]; if (data != null) { - report.AppendLine(key + " = " + data); + report.AppendLine(key + " : " + data); } } }