home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Plugins loading... problems
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="maniac's" data-source="post: 8095" data-attributes="member: 10325"><p>Just a small talk about plugins loading.</p><p></p><p>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).</p><p></p><p>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.</p><p></p><p>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 !</p><p></p><p>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.</p><p></p><p>The use of reflection must be protected against exceptions ! So at least each Activator.CreateInstance(..) calls must have its own try-catch block.</p><p>This is the same in Configuration.exe !</p><p></p><p>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.</p><p></p><p>Thanks !</p></blockquote><p></p>
[QUOTE="maniac's, post: 8095, member: 10325"] 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 ! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Plugins loading... problems
Contact us
RSS
Top
Bottom