Undoing TF_SaveServer in TurboFloat 4.1

Our application has a floating licensing mode (in which it uses TurboFloat) and an offline licensing mode (in which it uses TurboActivate). To enter the floating licensing mode, users specify a server (eventually via TF_SaveServer). To leave it, users clear the server.

In TurboFloat 4.0, we cleared the server by setting it to an empty string, e.g. TF_SaveServer(handle, "", 0, TF_SYSTEM). This successfully cleared the value, such that TF_GetServer returned an empty value.

Now, in TurboFloat 4.1.5.0, attempting to set the server to "" or null (0) results in an error, TF_E_BAD_HOST_ADDRESS.

Is there a correct way to clear the value after it's been set (restoring TurboFloat to the state before the server was set)?

Of course, we can always set it to some dummy special value that we can treat as "unset", but if there's a mechanism to actually unset the value that'd obviously be much cleaner! Does it exist?

>> "Is there a correct way to clear the value after it's been set (restoring TurboFloat to the state before the server was set)? "

No, but there's also no reason to do that. You can overwrite the value at any time using TF_SaveServer() with new values.

If you're using the bug in TF 4.0 and older (saving invalid values) as a way to differentiate between customers using node-locked and floating licensing, then the solution is to just "remember" (save the choice) of the customer. Counting on an implementation bug (that we've fixed) is not the correct way.