Error code 1 from systa?

I'm using the Actionscript/AIR version of LimeLM. (libTurboActivate.dylib = compatibility version 1.0.0, current version 4.0.9)

When I unregister and then register my app again, I can register it with any string (e.g. "blah").

In debugging, I see that GetError receives a retCode of 1 from systa. This is on Line 329 of TurboActivate.as.

However, there is no case in the switch statement in that function that will catch an error code of 1.

Shouldn't the return code be 2, since that's what TA_E_PKEY is and would correctly report "The product key is invalid or there's no product key."?

Or, is system somehow returning the wrong error code, and should be returning 2?

What I find interesting is that when onOutputData returns for GetPKey, I see my old, valid license key being returned, even thought I called deactivate() when the unregister button was clicked.

I'm not sure if this second issue, deactivate-isn't-really-getting-rid-of-license-key, is related to the first issue.

Error code 1 is just a generic error. It just means whatever generic error for that particular function is shown instead of a specific error.

Hi Wyatt,

Ok, thanks for that info.

So I'll add a TA_E_GENERIC constant to TurboActivate.as and catch that, reporting "Unknown error." That should prevent this bug of allowing validations on incorrect keys.

However, is there a reason that deactivate() isn't completely deleting the product key?