Activation works, but returns TA_E_INVALID_ARGS

Dear LimeLM support,

we've integrated a custom license field today.

When now creating a new license key and using it for activation, I can activate it successfully and get the right message (e.g. with the wizard on windows). When the application now calls IsGenuineEx(TA_GUID, &opts), it returns 13 (TA_E_INVALID_ARGS). After letting my application run through the trial check which comes subsequently like in your cod example, the activation wizard returns, that the activation period has expired.

On other machine, where the activations have been done earlier, everything works fine as before.

The code used until the invalid_args are returned:

HRESULT hr;GENUINE_OPTIONS opts;opts.nLength = sizeof(GENUINE_OPTIONS);opts.nDaysBetweenChecks = 90;opts.nGraceDaysOnInetErr = 14;opts.flags = TA_SKIP_OFFLINE;hr = IsGenuineEx(TA_GUID, &opts);

The added field is an integer, which I try to read like this (can't prove that it's working yet):

TCHAR * featureValue;hr = GetFeatureValue(_T("LimitImageSize"), 0, 0);featureValue = (TCHAR *)malloc(hr * sizeof(TCHAR));hr = GetFeatureValue(_T("LimitImageSize"), featureValue, hr);

if (hr == TA_OK){ int limit_resolution = 0;#ifdef _WIN32 limit_resolution = (int) _wtof ( featureValue );#else limit_resolution = (int) atof ( featureValue );#endif(...)

Do you have an idea what the problem could be?

When the application now calls IsGenuineEx(TA_GUID, &opts), it returns 13

The error codes are in hex. 13 is 0xD, which is TA_E_EXPIRED:

The activation has expired or the system time has been tampered with. Ensure your time, timezone, and date settings are correct.

Yes that's right - sorry for that. However, this is still a bit surprising, since the license should be activated, right?

I implemented a workaround by trying an activation after calling isGenuineEx:hr = IsGenuineEx(TA_GUID, &opts);if (hr == TA_E_TRIAL_EEXP) hr = Activate();

This returns TA_OK and thus would work. But is this the right way to go?

We've found a problem in the latest versions of TurboActivate (3.4.x) where sometimes an invalid TA_E_EXPIRED is returned when it shouldn't be. We're releasing a fixed version TA 3.4.3 today.

We've just released TurboActivate 3.4.3. This should fix that problem.

Thanks - seems to work fine!