diff -r ec4ccaa1210d -r b4f0f206173d GUI/SensorNotifyIcon.cs --- a/GUI/SensorNotifyIcon.cs Sat Mar 27 19:55:09 2010 +0000 +++ b/GUI/SensorNotifyIcon.cs Fri Apr 02 16:05:07 2010 +0000 @@ -191,8 +191,12 @@ return IconFactory.Create(bytes, 16, 16, PixelFormat.Format32bppArgb); } - private Icon CreateLoadIcon() { - graphics.Clear(Color.Transparent); + private Icon CreateLoadIcon() { + try { + graphics.Clear(Color.Transparent); + } catch (ArgumentException) { + graphics.Clear(Color.Black); + } graphics.FillRectangle(darkBrush, 0.5f, -0.5f, 14, 16); float y = 0.16f * (100 - sensor.Value.Value); graphics.FillRectangle(brush, 0.5f, -0.5f + y, 14, 16 - y);