2004-08-06, 05:42 PM
If I set name="TaskImage" visible="true" in the skin.xml for the main menu and the search folder (or a 3rd party plugin folder) doesn't contain a task.png, I get an unhandled exception. I would expect gbpvr to just not show a taskimage, rather than crashing. Below is the full output of the exception:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
 at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Int32 width, Int32 height)
 at bv.d()
 at bv.a(String A_0)
 at bv.a(Message& A_0)
 at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
 at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
 at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
<Snip>
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
 at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Int32 width, Int32 height)
 at bv.d()
 at bv.a(String A_0)
 at bv.a(Message& A_0)
 at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
 at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
 at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
<Snip>