GetGeneralLicensingInformation() in TeamRender Client fails

  • Hi,

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

    Bool PluginStart()
    		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


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

  • 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

Log in to reply