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
    • Recent
    • Tags
    • Users
    • Login

    ObjectData plugin fails to register

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 298 Views
    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 Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 22/03/2011 at 07:05, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R12 
      Platform:      
      Language(s) :     C++  ;

      ---------
      Hi everyone,

      A user is having a problem with one of my plugins (ArrowMaker) when used in a Mac net render server or client. The plugin, which is an ObjectData plugin, works fine on a PC client or server, but when used on a Mac OSX 10.6.6 server/client it fails in the call to RegisterObjectPlugin(). The relevant code is:

      String name = GeLoadString(IDS_ARROWMAKER);   
      return RegisterObjectPlugin(ID_ARROWMAKER, name, OBJECT_GENERATOR|OBJECT_ISSPLINE, ArrowMaker::Alloc, "Oarrowmaker", AutoBitmap("arrowmaker.tif"), 0);   
      

      and this returns FALSE, whereas it should return TRUE to indicate success. The plugin works perfectly on a standalone Mac, it only fails in the net render environment. I checked that the resource files were in place and that is okay, although it seems that a missing resource or icon file doesn't cause RegisterObjectPlugin() to fail.

      Does anyone have any idea why this might be happening? The only thing I can think of is a fail in the Alloc() routine where a new plugin class is created, but I don't know why that would only fail under net render on a Mac. This is the code for that function call:

      static NodeData* Alloc(void) {return gNew ArrowMaker; }
      

      I'd be very grateful for any help resolving this. I can't test it locally as I don't use net render myself.

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 24/03/2011 at 01:36, xxxxxxxx wrote:

        Hello,
        i hade the same problem some time ago, the problem in my case is linked to wrong product name in xcode .... and another plugin loaded have the same productname (eg cinema4dsdk.dylib) if you rename the product after compile it cinema can't register it anyway if another identical product name plugin is already registred ... if the problem can be this ... ask to your customer to rmove all other plugin in net folder ... if all work fine mean you have to rename the full rpoject/target/product name in xcode before compile plugin.

        i hope that can help

        Franz

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 24/03/2011 at 06:51, xxxxxxxx wrote:

          Thanks Franz. I will certainly take a look at this. I really hope the cause is something like that, because so far I can't see what else it could be.

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