Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

floating license not being released

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
absvm



Joined: 14 Dec 2017
Posts: 8

PostPosted: Fri Jan 12, 2018 11:56 am    Post subject: floating license not being released Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 4844

PostPosted: Fri Jan 12, 2018 10:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
absvm



Joined: 14 Dec 2017
Posts: 8

PostPosted: Tue Jan 23, 2018 6:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 4844

PostPosted: Tue Jan 23, 2018 8:48 am    Post subject: Reply with quote

Great to hear you solved it.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group