@kbar said in When can I display a dialog at startup?:
You won't be able to rename the plugin folder since the plugin will already have been loaded by C4D. Also renaming folders is not really a good solution.
I am only using R20 for this, and it seems that ALL the plugins are loaded at startup, then the PluginStart() method is called for each of them. But even if PluginStart returns false, the plugin stays loaded so it is still locked by the operating system.
One solution that would work for me is if C4D unloaded a plugin if PluginStart() returns false.
Is there some reason why plugins are not unloaded if PluginStart() returns false?
Hi Kent,
well, the hint actually came from Rick, who's using this technique in the Cineversity Toolbox for updating plugins.
And as I said, while I was not able to rename the folder with our API, it was very well possible to rename the folder containing a plugin in use (while it was not possible for the actual plugin binary) using the explorer. So I still think, this should be possible somehow.
On the other hand you seem to have a solution for now, great.
For R20 and beyond things get actually even more complicated and less likely to have an unload option for plugins. MAXON API plugins don't have the PluginX() functions anymore. Their load order gets determined by dependencies and it is very easy to make use of one plugin from another plugin, making unloading of plugins even more complicated. As we are moving away from the classic API, it gets more and more unlikely the mechanism will change for classic plugins.
Nevertheless I see your need and will forward the request to development.
Cheers,
Andreas