MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » General Development (no feature request here!)


General Development (no feature request here!) You were able to fix an issue, or improved a feature? Post it here.

Reply
 
LinkBack Thread Tools Display Modes
Old 2005-01-07, 09:25   #1 (permalink)
Portal Member
 
Join Date: Jul 2004
Location: Paris, FRANCE
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts


Send a message via MSN to maniac's
Default Plugins loading... problems

Just a small talk about plugins loading.

In Mediaportal's old versions each plugin resided in its own library. A problem during a pluging loading have no impact expect on itself (cause an exception just stop the process for the current plugin's dll).

Since many plugins are included in the same library (i.e. windowsplugins.dll), the exception management of plugins loading must be improved to manage this architecture choice.

For example, if an exception occurs within a plugin instance creation ( Activator.CreateInstance(...) ), next plugins will never be loaded because the dll's type loop is in the try-catch block !

I've got this problem, and it makes me unable to use in MP : I saw the first plugin (in name order) screen @ Mp startup and I cannot navigate.

The use of reflection must be protected against exceptions ! So at least each Activator.CreateInstance(..) calls must have its own try-catch block.
This is the same in Configuration.exe !

To finish, the plugins loader must check if the current type is not an abstract class (that could not been instanciated), I've not seen this test.

Thanks !
__________________
--Maniac's
Optimize your DiGiMatrix with Windows :
http://www.prodigia.org/digimatrix
maniac's is offline   Reply With Quote
Reply

Bookmarks

Tags
loading, plugins

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VFD display will not work... :-( vvulture Codecs, External Players 8 2007-04-25 16:27
LCD plugin supporting more than 70 display types (now with full graphics support!!!) JoeDalton Support 919 2007-04-19 11:08
channel change problem... desperate here :-( vvulture Codecs, External Players 11 2006-07-23 14:22
MPExTuneCmd Plugin not working as expected brierot Codecs, External Players 12 2006-05-29 18:50
DVD-Play VMR9 blund The old Bugreport Forum 4 2005-11-27 14:15


All times are GMT +1. The time now is 07:02.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress