Menu

Apply for one feature

thinkhy
2011-01-18
2013-04-25
  • thinkhy

    thinkhy - 2011-01-18

      Delay-load plugin, that could short the startup time,especially in the case of  many plugins needing to be loaded.

     
  • shihang211

    shihang211 - 2011-01-28

    useful and cool !

     
  • thinkhy

    thinkhy - 2011-01-28

    Maybe we could port the feature from DOM  Framwork in Fit.

     
  • Zhang Yungui

    Zhang Yungui - 2011-02-01

    This feature is accepted. I'm implementing in this week. My idea is using plugin's CLSID cache which is auto generated when delay-loading plugins are ready to load first time. A delay-loading plugin which filename is configged in INI file is really loaded when it's object is creating.

     
  • thinkhy

    thinkhy - 2011-02-05

    Expecting the implementation of the feature ……

    I think that ini file is redundant some extent.  It 's  inconvenient to reuse plugin with a ini file.  On the other hand, the developers of plugin rather than users of the plugin know whether it could be delay-loaded.So my suggestion is to implement this configuration in the code of plugin .

    PS: To get a globally recognized avatar at  http://en.gravatar.com/  , then  head portrait will be appeared automatically  :-)

     
  • thinkhy

    thinkhy - 2011-02-05

    It seems no way to implement the delay-loaded feature without a configure file.
    This blog post inspired me:http://www.uieasy.com/cn/blog/?p=148

     
  • Zhang Yungui

    Zhang Yungui - 2011-02-08

    In revision 48 the delay-loaded plugin is really loaded only when it's first object is created, so there is a problem for observer plugins which should be loaded to receive event even no object is created.

    I've modified ChangeManager plugin to let these observer plugins are loaded before the specified event occurs.

    Thanks for reviewing: http://x3c.svn.sourceforge.net/viewvc/x3c?revision=51&view=revision

     
  • thinkhy

    thinkhy - 2011-02-16

    This day, I have tested the feature of delay-loaded in the project of SimpleApp. And I found three problems as following:

            1. In function  Cx_PluginLoader::LoadPluginOrDelay
                   this line:   if (FindModule(GetModuleHandleW(filename)) >= 0). That may cause plugin  couldn't loaded.

                In the morning, It's a bug. Nevertheless, it 's fixed now :-)
         
            2.  The ecode of ini file must be Unicdoe. If the encode is set to be cp936 or Utf-8,GetPrivateProfileSectionW(sectionName, buf, size, iniFile) return zero.
      
            3. When I compiled the project of UnitTest, a error was reported as that:

    "trunk\code\pkg_unittest\modules\public\stdafx.h(40) :  fatal error C1083: 无法打开包括文件:“cppunit/TestCase.h”: No such file or directory".

     

Log in to post a comment.