|
From: Bruno N. <br...@th...> - 2011-03-16 13:08:57
|
Happy it was resolved. b On 15 Mar 2011, at 20:38, Haarm-Pieter Duiker wrote: > Hi Bruno, > > Thanks for the help. I was able to work through this issue to some degree. It's not ideal and other hosts don't take the same approach of loading the same .ofx library multiple times, but the affect now seems to be harmless. > > Regards, > HP Duiker > Duiker Research > > On Thu, Mar 10, 2011 at 2:46 AM, Bruno Nicoletti <br...@th...> wrote: > Hi Haarm-Pieter, > > for host specific issues you should contact the host developers directly. For Nuke, try nuk...@su... > > To avoid continually reloading and re-describing all plugins, Nuke will cache away the information about an OFX plugin when it first encounters it, this is in the NUKE_TMP_DIR/ofxplugincache directory. On Unix-alikes this is /var/tmp/USERID/ofxplugincache > > So what is probably happening is that Nuke has done the whole load/describe rigmorale the first time round and cached the plugin away. Next time round, as the plugin on disk has not changed, it doesn't load it at all, but it can make menus from the cached descriptions, which means Nuke starts up much faster. So when you create one of your plugins in Nuke, it only then loads the dynamic library containing it, and as it knows which index in the binary that plugin belongs to it is probably skipping the OfxGetNumberOfPlugins call. > > It still has to call OfxGetPlugin, as otherwise it can't get the needed function pointers for that plugin, also you will be guaranteed that the "On Load" action will be called before any other action is. > > b > > > On 28 Feb 2011, at 06:40, Haarm-Pieter Duiker wrote: > > > Hi, > > > > I'm running into an issue where OfxGetNumberOfPlugins isn't being called by Nuke. It's a little bit of an issue because that's where I'd like to insert some licensing code... Nuke appears not to call OfxGetNumberOfPlugins when a file is reopened very quickly after a recent exit or crash (!). Is this expected behavior for an OpenFX host? Can plugin writers plan for any specific ordering of calls to the plugin's public functions? Is there a suggested location to insert licensing calls? > > > > In Nuke, the ordering is, sometimes, OfxGetNumberOfPlugins followed by successive calls to OfxGetPlugin. In other cases, OfxGetPlugin is called directly, as if the result of OfxGetNumberOfPlugins was cached between Nuke launches. Either way, for each of call to OfxGetPlugin, Nuke seems to reload the dynamic library entirely as evidenced by repeated instantiations of static variables and calls to library constructors and destructors. > > > > I'm testing specifically on OSX with Nuke 5.01v1, 6.1v3 and 6.2v2 for i386 and x86_64. > > > > Thanks in advance for any help, > > HP Duiker > > Duiker Research > > ------------------------------------------------------------------------------ > > Free Software Download: Index, Search & Analyze Logs and other IT data in > > Real-Time with Splunk. Collect, index and harness all the fast moving IT data > > generated by your applications, servers and devices whether physical, virtual > > or in the cloud. Deliver compliance at lower cost and gain new business > > insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ > > Openfx-developer mailing list > > Ope...@li... > > https://lists.sourceforge.net/lists/listinfo/openfx-developer > > -- > Bruno Nicoletti, > Chief Technology Officer > The Foundry > 6th Floor, The Communications Building, > 48, Leicester Square, > London, WC2H 7LT, UK > Skype: brunonicoletti > Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906 > Web: www.thefoundry.co.uk > Email: br...@th... > > The Foundry Visionmongers Ltd. > Registered in England and Wales No: 4642027 > > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Openfx-developer mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openfx-developer > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d_______________________________________________ > Openfx-developer mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openfx-developer -- Bruno Nicoletti, Chief Technology Officer The Foundry 6th Floor, The Communications Building, 48, Leicester Square, London, WC2H 7LT, UK Skype: brunonicoletti Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906 Web: www.thefoundry.co.uk Email: br...@th... The Foundry Visionmongers Ltd. Registered in England and Wales No: 4642027 |