I have an interesting issue that I ran into when testing the case where my program is disconnected from the internet.
Background: I am using TurboActivate in a C# WPF program. I am using verified trials, and am trying to test some of the functionality, along with dialog boxes, in order to verify that my program's interaction with TurboActivate is appropriate. I use TurboActivate.IsGenuine(90,14, false) as the primary method for checking for a valid license.
The problem: I created a code for a verified trial and activated my copy of the program with it. All went well. Then I altered my license check to be TurboActivate.IsGenuine(0,14, false), and then disconnected my computer from the internet so I could simulate the case where the "daysBetweenChecks" ran out and the user was disconnected (but still had some time in the grace period). I got the appropriate "InternetError" response from IsGenuine, and that worked fine. Now I have a dialog box at this point that pops up and asks the user if they want to try to connect to the server again. If they do want to try again, then I call TurboActivate.IsGenuine(0,14, false) again, and respond appropriately to the result.
So when I tested, I disconnected from the internet, opened the program, got the "Do you want to retry" message, reconnected to the internet, and then clicked "Yes" on my dialog, which initiated a call to TurboActivate.IsGenuine(0,14, false). Interestingly enough, the TurboActivate.IsGenuine(0,14, false) call returned InternetError again! I closed my program and re-opened it, and the original call to TurboActivate.IsGenuine(0,14, false) again returned InternetError, seemingly not recognizing the internet connection.
So I then I tried replacing the call to TurboActivate.IsGenuine(0,14, false) completely with a call to TurboActivate.IsGenuine(). This worked.
Now I am aware that your documenation recommends to call TurboActivate.IsGenuine() with no arguments when you do a re-try. But I wasn't aware that this was required? What exactly is going on here? Is my method of testing this case flawed, and that is what is causing the issues?