Problem with TurboActivate.GetPKey()

Hi,

Recently (like since past week), we have been getting trouble using TurboActivate.GetPKey(). In our software, we get the key so that we can log software feature use and tie that data with the product key.

This function has been throwing error for a good part of our users. Unfortunately I have not been able to reproduce this error. But it goes past TurboActivate.IsGenuine(0, 0) and then get stuck at this GetPKey call.

I was wondering if something has changed in regards to this? As this problem is relatively new!

Thanksimlokesh

This function has been throwing error for a good part of our users.

What is the exact error? Are the customer's activated?

TurboActivate.IsGenuine(0, 0)

Don't call IsGenuine with (0,0). At last use (1,1). Or better yet (7, 14).

Also, make sure you're using the latest version of TurboActivate (currently 3.4.6).

Don't call IsGenuine with (0,0). At last use (1,1). Or better yet (7, 14).

Also, make sure you're using the latest version of TurboActivate (currently 3.4.6).

Will TurboActivate still check for revoked keys everytime I call IsGenuine?

Also, what is the third parameter in the following:public static extern int GetFeatureValue(string featureName, StringBuilder lpValueStr, int cchValue);

Thanks

Will TurboActivate still check for revoked keys everytime I call IsGenuine?

Not everytime, no. And it shouldn't. Don't hammer the activation servers because now you're requiring the customer always has a stable internet connection to start your application. Trust me, you don't want that requirement.

public static extern int GetFeatureValue(string featureName, StringBuilder lpValueStr, int cchValue);

Use the TurboActivate class public functions. They handle all of that behind the scenes. (It's the buffer size -- but again, just use the publicly exposed function, not that one).