Skip to content

Commit a758a00

Browse files
Merge pull request #775 from yqz562/patch-1
Update error-license-buffer.md
2 parents 3750d8b + 67588aa commit a758a00

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

faq/general/error-license-buffer.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,25 @@ When initializing the license for cloud hosted services, it is common to come ac
1717

1818
This error occurs when Dynamsoft sdk attempts to write the license file to the local usr/home directory or Home directory, but is unable to do so due to lack of permission to read or write the license file in that directory.
1919

20-
To resolve this issue, please set the license file cache path to a directory that your program has read and write permissions for.
20+
To resolve this issue, please set the license file cache path to a directory that your program has read and write permissions for. Please place the code before license initializtion.
2121

2222

23-
Code snippet in C++
23+
C++
2424
```C++
2525
static int SetLicenseCachePath(const char* directoryPath)
26-
```
26+
```
27+
Python
28+
```Python
29+
LicenseManager.set_license_cache_path("DIRECTORY-PATH-FOR-LICENSE-CACHE")
30+
```
31+
Java
32+
```Java
33+
BarcodeReader.setLicenseCachePath("DIRECTORY-PATH-FOR-LICENSE-CACHE");
34+
```
35+
.NET
36+
```.NET
37+
LicenseManager.SetLicenseCachePath("DIRECTORY-PATH-FOR-LICENSE-CACHE");
38+
```
39+
40+
For more language, please refer to [this page](https://www.dynamsoft.com/barcode-reader/docs/core/). Select the language and then navigate to API Reference -> DynamsoftLicense -> LicenseManager
41+

0 commit comments

Comments
 (0)