The very beginning of my plugin's PluginStart() looks like this:
// 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.
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.
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:
By diving into the location in the API where the error is thrown, I might have found that it's a nullptr error.