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.