NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 25 26 27 28 29 … 93 Next »
UiButton Dispose() bug

 
  • 0 Vote(s) - 0 Average
UiButton Dispose() bug
cb123
Offline

Junior Member

Posts: 20
Threads: 6
Joined: Aug 2008
#1
2009-02-08, 04:50 PM
Sub,

While investigating a
Quote:Unable to cast object of type 'System.Collections.ArrayList' to type 'GBPVR.Public.GBPVRUiElement'.
exception when calling UiButton.Dispose() I noticed the following bug in UiButton.Dispose():

Code:
public void Dispose()
{
    ArrayList list = new ArrayList();
    if (this.normalUiElement != null)
    {
        list.Add(list);    // SHOULD BE: list.Add(this.normalUiElement);
    }
    if (this.selectedUiElement != null)
    {
        list.Add(this.selectedUiElement);
    }
    PluginHelperFactory.getPluginHelper().DisposeResources(list);
}
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#2
2009-02-08, 04:51 PM
Right you are. I'll fix this for the next release.

Thanks.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode