PDA

View Full Version : How is a borrowed license stored?



TobiaszJason
06-17-2009, 10:37 AM
How does a client know that it has a borrowed license? Is there something being set in the registry? Or is it being stored in some other fashion?

I would like to know because I would like to remove whatever is there as lm_borrow_return does not seem to work properly with 11.6.1. It returns the borrowed license, but does not update the client accordingly. The client thinks it has a node-locked license.

This is bad because our application cannot support returning borrowed licenses from its GUI interface. A user could borrow a license on a client...return it...and then that client would have a license for a maximum of 2 weeks. This could be repeated indefinitely.

We've ripped out borrow returns from our application. Instead, the user has to use lmborrow.exe or lmtools. This is really inconvenient.

raffie
06-19-2009, 08:43 AM
The borrow data for the client is in the registry. Look in HKEY_CURRENT_USER\Software\FLEXlm License Manager\Borrow.

We've found two cases where the returns did not update the client data. The first was if the feature name has a '-' in it. The second was if when doing the return you used a different case from when you did the borrow. The checkout is actually case insensitive but apparently the borrow and return are case sensitive.