2005-12-04, 02:01 AM
I am trying to use the new feature to put a task image on the selected main menu button, but it causes GBPVR to crash with an unhandled exception for an object reference not set to an object error.
My skin file has this in it.
And the gbpvr.exe.log file shows this error:
My skin file has this in it.
Code:
<CompositeImage name="SelectedButtonImage" size="450,145">
<DrawImage filename="..\resources\menu_list_focus.png" loc="4,5" size="208,32"/>
<DrawText text="@buttonText" loc="15,9" size="200,34" textStyle="ButtonText" align="Left"/>
<DrawImage name="@taskImage" loc="225,5" size="126,140"/>
</CompositeImage>
And the gbpvr.exe.log file shows this error:
Code:
12/3/2005 5:55:29 PM.630 ERROR [2] Error: msg=0x18 (WM_SHOWWINDOW) hwnd=0x260a80 wparam=0x1 lparam=0x0 result=0x0 : System.NullReferenceException: Object reference not set to an instance of an object.
at GBPVR.Public.SkinHelper.getNamedImageNonCached(Image image, Boolean fillWithBackgroundColour, Color backgroundColour, String name, Hashtable parameters)
at GBPVR.Public.SkinHelper.getNamedImageNonCached(String name, Hashtable parameters)
at GBPVR.Public.SkinHelper.getNamedImage(String name, Hashtable parameters)
at xae10db17d26ba033.x86396f56243de9fb.getButtonForTask(Int32 x0fcb6604348410b0, IMenuTask xaf6b5176e5a6d4b2)
at xae10db17d26ba033.x86396f56243de9fb.render(Boolean& xbae0ec4fbb835d1e)
at xae10db17d26ba033.xbb1566157f5f8b1f.x064b5539bc6e37f5(Object xdf2e3583f942db7b, EventArgs xc4f45905cb1fc7ba)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at xae10db17d26ba033.xbb1566157f5f8b1f.WndProc(Message& x5f8f2c40c000ab2c)
12/3/2005 5:55:44 PM.481 VERBOSE [321] getValue() loading new key/value into cache: /settings/NetRadioBufferSize