|
From: Haarm-Pieter D. <li...@du...> - 2011-02-28 07:10:40
|
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 |