View previous topic :: View next topic |
Author |
Message |
absvm
Joined: 14 Dec 2017 Posts: 8
|
Posted: Fri Jan 12, 2018 11:56 am Post subject: floating license not being released |
|
|
Hi,
I have copied to sample code for the floating license app and integrated it into my own application.
My license service has a license installed for 1 floating license.
Before closing my app, I call ReleaseFloatingLicense() (which subsequently calls _floatingLicense.Release()) in order to release the license.
But when I start the application again, I get no license. I assume the license did not get released. If I restart the service, then I get a license again.
Also, when the application crashes, I would expect the lifetime of the floating license to expire and release the license, which also does not seem to happen.
What am I missing? What would be the reason for the license not being released? |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Fri Jan 12, 2018 10:03 pm Post subject: |
|
|
If you run the original floating license server and application can you replicate the issue?
Have you tried debugging the server when the license is being released - put a breakpoint in LicenseServer.ReleaseLicense to check it is being called. _________________ Infralution Support |
|
Back to top |
|
|
absvm
Joined: 14 Dec 2017 Posts: 8
|
Posted: Tue Jan 23, 2018 6:42 am Post subject: |
|
|
Ok, I solved it by debugging the license service. Turned out that the object that held the floating license in my app was not disposed of properly and hence the timer kept renewing the license.
Thanks for the support.
rgds |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Jan 23, 2018 8:48 am Post subject: |
|
|
Great to hear you solved it. _________________ Infralution Support |
|
Back to top |
|
|
|