File sharing lock count exceeded
When converting very large files to sdltb, you may get a crash with the error File sharing lock count exceeded. Increase MaxLocksPerFile registry entry. This appears to be be a bug in MultiTerm or MS Access.
Note that the suggested fix is specifically about the Jet 4.0 component, changing the MaxLocks for any other version will have no effect. This is because MultiTerm uses an old version that comes as part of the MultiTerm (or Trados) installation.
See also Size limits - IATE for details
From the original, now disappeared Microsoft KB article:
---------------------------------------------------------------------------------------
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
Steps to increase the maximum number of locks per file:
- Click Start, and then click Run.
- Type regedit, and then click OK.
- Locate the following registry key depending on your Access installation:
- For Windows 32 bit
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Jet 4.0
- For Windows 64 bit
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Jet\4.0\Engines\Jet 4.0
- In the right pane of Registry Editor, double-click MaxLocksPerFile.
- On the Edit DWORD Value dialog box, select Decimal.
- Modify the value of the Value data box as required, and then select OK.
Note that this method changes the registry setting for all applications that use Microsoft Jet database engine version 4.0.
---------------------------------------------------------------------------------------
I used a value of 40,000 to convert a termbase with 170,000 entries, so that could be a starting point.
Once the registry is set, before the conversion, reboot your machine, to ensure that any potential locks are released.
This method does not always work, but has a good success rate.
I also had reports that these steps may help:
- Increase locks as above
- Use the Converter to create xdt/xml files
- Use MultiTerm to create a new termbase based on the xdt file
- In MultiTerm, import the xml file
Created with the Personal Edition of HelpNDoc: Easy to use tool to create HTML Help files and Help web sites