Howto get a instance of a running service-plugin?! (1 Viewer)

kuehnch

MP Donator
  • Premium Supporter
  • June 14, 2006
    303
    9
    43
    Cologne (Köln)
    Home Country
    Germany Germany
    During the development of plugin for the tvserver, i noticed, that the plugin becomes loaded twice --> one time by tvservice and one time by setuptv.
    That is a problematic behaviour, if you want to show up some status-stuff, because there is no reference to the plugin-instance, that was created at the tvservice-startup.
    A second problem (beside the status-part) is the immediate usage of a configuration, that was built up by using setuptv. Currently, the one and only solution to fix this is, to restart the service completely, so that it reloads all plugins and its configurations.

    Solutions?!:
    1.) SetupTV should not load all the plugins again from the DLLs to showup the configuration-dialog. It should receive the instance of the plugin, that was loaded by the tvservice before.
    2.) There should be the possibility, to get the plugin-instances from a running tvservice.
     

    Users who are viewing this thread

    Top Bottom