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

    GetGeneralLicensingInformation() in TeamRender Client fails

    Cinema 4D SDK
    2
    3
    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.
    • fwilleke80F
      fwilleke80
      last edited by fwilleke80

      Hi,

      The very beginning of my plugin's PluginStart() looks like this:

      Bool PluginStart()
      {
      	iferr_scope_handler
      	{
      		GePrint("Activation aborted!"_s);
      		return false;
      	};
      
      	// License validation check
      	maxon::String productId, systemId, userId, licenseId, userName;
      	GetGeneralLicensingInformation(productId, systemId, userId, licenseId, userName) iferr_return;
      
      	// ...
      	// a lot more code that checks for plugin license and registers the plugins...
      	// in TR Client, it is never executed, because GetGeneralLicensingInformation() throws an error.
      	// ...
      
      	return true;
      }
      

      Running it in Cinema 4D or TeamRender Server works fine, but in TeamRender Client, the call to GetGeneralLicensingInformation() returns an error and jumps to the error handler. Why?

      Should I simply check if GeGetVersionType() returns VERSIONTYPE::TEAMRENDER_CLIENT and then skip the call? If so, it would be nice if that was mentioned in the SDK docs.

      Environment is:

      • R21.026
      • Xcode 10.1
      • macOS 10.13.6

      Greetings,
      Frank

      www.frankwilleke.de
      Only asking personal code questions here.

      1 Reply Last reply Reply Quote 0
      • S
        s_bach
        last edited by

        Well, what error does GetGeneralLicensingInformation() return? You can check the error message: Error Class

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • fwilleke80F
          fwilleke80
          last edited by fwilleke80

          The way it's described in the SDK docs, I do not get any error message:
          Screen Shot 2019-12-16 at 12.08.48.png

          By diving into the location in the API where the error is thrown, I might have found that it's a nullptr error.
          Screen Shot 2019-12-16 at 12.04.55.png

          www.frankwilleke.de
          Only asking personal code questions here.

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