Recovering from "Access denied" error
An LM-X client library functionality that involves storing client data, for example borrowing or checking out floating licenses with enabled automatic server discovery requires OS-level synchronization between different processes.
If initiating one of the above actions fails under Windows, LM-X may return an error code LMX_SYSTEM_INTERPROCESS indicating resource locking error. Furthermore, if you want to borrow a license by setting the environment variable LMX_BORROW, you may see the following error:
--- LM-X Borrow license example ---
Unable to checkout:
LM-X Error: (Internal: 23 Context: 23)
Access is denied.`
To resolve this issue, remove any temporary or data directory, which is named after `boost`, `boost _interprocess` or `lmx.interprocess`. In most cases, removing only `C:\ProgramData\boost_interprocess` should solve this problem.