Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    plugin does not load

    General Discussion
    0
    2
    528
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post