View previous topic :: View next topic |
Author |
Message |
mutex
Joined: 22 Apr 2015 Posts: 19
|
Posted: Thu Nov 03, 2016 6:56 am Post subject: |
|
|
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 |
|
|
mutex
Joined: 22 Apr 2015 Posts: 19
|
Posted: Mon Nov 07, 2016 10:14 am Post subject: |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Nov 07, 2016 9:27 pm Post subject: |
|
|
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 |
|
|
|