thanks for the fast reply.
For the activation I use a node program and the LA_USER is PermissionFlags.LA_USER
In matlab i use uint32(1) for the user. so it should be the same, shouldn’t it?
Not exactly. When I use Tool B (Matlab), and activate the license, it will always show “license genuinely activated”, even if I suspend it.
When I try to activate a suspended license again (which does not make sense but anyway), I get the error: License activation failed: 53
When I then check the license, the license check fails with status 1
Only reason it can happen (one tool not detecting the activation of other) is if the two apps are being run using different user accounts. Can you try using the latest version of LexActivator (in case you are using any old version).
I didn’t have the time to replicate the issue. But it seems the problem does not appear if I call calllib('LexActivator','ActivateLicense'); (even without setting the actual LicenseKey) every time before I call calllib('LexActivator','IsLicenseGenuine');. However, it feels strange to do that. But it is the only way it works. Could you comment on that?
When you call SetLicenseKey() function on any machine, the key is persisted on disk. Hence your code is working. You should call ActivateLicense only when IsLicenseGenuine returns 1.
After step 4, make sure tool B remains alive at least for 4 secs for the server sync to finish. Then restart tool B and you will see the updated status.