plugin does not load
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/05/2004 at 12:11, xxxxxxxx wrote:
I have a plugin that links to a static library, but the problem is if I have any object defined in that static library, instantiated in the functions in the plugin code, the plugin does not load.
Code example :
Class CProperty is defined in mystatic.lib
And in the plugin code which links to mystatic.lib, i subclass SceneSaverData and override the Save function
class MySceneSaverData: SceneSaverData
{
....
virtual long Save( PluginSceneSaver* inNode ...)
{
CProperty MyPropertyInstance; // This seems to be the problem
}
};
With that, when i step through, the "C4D_MAIN" in cd4_pmain.cpp does not even get called. But if I comment off "CProperty ...", the plugin loads fine. I had my static lib compiled with "/vmg /vms" options too.
I am developing on a Win32 machine, using MS .Net2003. Would appreciate comments from anyone who knows whats wrong.
Thanks,
Siok -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/06/2004 at 09:04, xxxxxxxx wrote:
Gonna post my own reply for a closure .. =P
I found the problem and solution, i.e. I got rid of all global variables in the static libraries I was using. I should have looked into the SDK help section, seems like its a known problem and there is a alternative solution. If you are interested, see this
https://developers.maxon.net/forum/topic/1234