0003790: Improved exception handling in GUIControlFactory (1 Viewer)


Worlds greatest bot!
March 26, 2007
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.

Continue reading...

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

OP Similar threads Forum Replies Date
horned_reaper [solved] Improved MBID Search for Artist and Album Fanart Handler 101
ajs [fixed] 5022: Improving the MPE Installer, providing nicer GUI :) MediaPortal 1 42
doskabouter Small code improvements MediaPortal 1 8
ajs [fixed] 5015: Improving the MP1 installer, providing nicer GUI :) MediaPortal 1 138
doskabouter Exceptions found due to improved logging General Support 11
CyberSimian [fixed] MP1-4990 : Improve horizontal scrolling in the EPG MediaPortal 1 10
ge2301 Bugs and Improvements Nereus 0
N [Proposal] How to improve series scheduling MediaPortal 2 72
ge2301 [Finished] [MP2-776] Improve busy screen appearance MediaPortal 2 14
B [MP2-772-773] improve busy cursor and settings loading Testing Area 10
azzuro [Help Me!] Improve duration times of GUI List items MediaPortal 2 37
Alberto83 [Finished] [MP2-752] Improve recording handling MediaPortal 2 34
B [MP2-744] WMC home content focus improvements Archive 55
CyberSimian Unhandled exception in TV Server TV-Server 0
ltfearme Exception thrown when SetText in GUI Notification dialog Titan Skin Feedback 3
R Unhandled Exception Allgemeines Support- und Diskussionsforum 3
P MP2 TV Server crashes when starting - throws error remoting exception General 2
rexdog unhandled exception error, and, no sound on first TV channel selected - fine afterwards General 2
uxDesign Can't play Blu Ray: VideoPlayer9: Exception while creating DShow graph 1.20 2
Terra [fixed] MP2 Importer Exception of type 'System.OutOfMemoryException' was thrown. 2.2 Archive 38
T [further infos missing] Unhandled exception 2.2 Archive 5
R Exception while creating DShow graph Watch / Listen Media 12
Top Bottom