0003790: Improved exception handling in GUIControlFactory

Discussion in 'Bugtracker Feed' started by MediaPortal-Bot, January 3, 2012.

  1. MediaPortal-Bot

    MediaPortal-Bot Worlds greatest bot!

    Joined:
    March 26, 2007
    Messages:
    3,715
    Likes Received:
    90
    Ratings:
    +93 / 0
    Home Country:
    Germany Germany
    When GUIControlFactory updates a control it performs type conversions from string to a target type (int, bool, etc). At the moment the exceptions are handled internal to GUIControlFactory on each attempt to create the control. The problem is that the window never receives notice that the control couldn't be created properly and so the window keeps trying to create the broken control resulting in MP freezing while trying to load the window. By throwing the exception to the GUIWindow the window can remove the offending control from its list of controls and log a debug error. Without this change the skin developer needs to kill MP and manually hunt through the window xml to find the problem (the logs are not useful). With this change you can leave MP running and simply edit the xml file (with good log info) and retry.

    http://mantis.team-mediaportal.com/view.php?id=3790



    Open the issue in Mantis...
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!