Counting the amount of surface objects, so we can see if there are multiple in memory when we have bugs.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2365 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-12-07 15:12:04 +00:00
commit 83d244c3bf
5 changed files with 116 additions and 140 deletions

View file

@ -33,6 +33,7 @@ namespace Greenshot {
/// Description of AboutForm.
/// </summary>
public partial class AboutForm : BaseForm {
private static log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(AboutForm));
public AboutForm() {
//
// The InitializeComponent() call is required for Windows Forms designer support.
@ -88,7 +89,8 @@ namespace Greenshot {
default:
return base.ProcessCmdKey(ref msg, keyData);
}
} catch (Exception) {
} catch (Exception ex) {
LOG.Error(string.Format("Error handling key '{0}'", keyData), ex);
}
return true;
}