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 

Clone detection and reauthenticate
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
mutex



Joined: 22 Apr 2015
Posts: 19

PostPosted: Thu Nov 03, 2016 6:56 am    Post subject: Reply with quote

Infralution wrote:
I can't think of any other cause - but it is a bit difficult because I don't know exactly what you were doing. Can you replicate the issue?


I understand. This happens once in couple of months, I'll try to figure out some clues next time and post an update.
Back to top
View user's profile Send private message
mutex



Joined: 22 Apr 2015
Posts: 19

PostPosted: Mon Nov 07, 2016 10:14 am    Post subject: Reply with quote

The AtomicReauthenticateAndInstallLicense and StartBackgroundReauthentication are using GetLicense method inside a mutex.

However, there is GetLicense method in LicenseProvider that can be (and is) called from various points and it is reading the license file without a mutex.. Isn't there a chance that read will clash with writing?
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 4876

PostPosted: Mon Nov 07, 2016 9:27 pm    Post subject: Reply with quote

Calling GetLicense does not pose a synchronization problem provided that you don't Reauthenticate or save the license outside the mutex. Typically GetLicense is just called when the application is started to check if there is a valid license. If there isn't then the EvaluationDialog is shown.
_________________
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
Goto page Previous  1, 2
Page 2 of 2

 
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