Error M1108 Invalid Script - Out of Memory
Description
When writing scripts, various parts of the script may need to be stored in memory. It is possible to fill the available memory and then attempt to add more, which can create an overflow. When an overflow occurs, you will receive the followng error:
Solution
The memory threshold setting defaults to 4 MB, but it is configurable so the ceiling can be raised.
The resolution to this issue will require a modification of the llmwdn32.ini file or if the LPS is running with settings "remapped" to the registry, it will require a registry key modification.
- Determine if your LPS is running "remapped". Follow these steps:
- Open the Loftware Configuration Utility.
- Windows XP, 2003: Start | Control Panel | Loftware Print Server
- Windows 7, 2008: Start | Programs | Control Panel | Loftware Print Server (32-bit)
- Shift-F2 will create an "Advanced" tab.
- Open the "Advanced" tab.
- If the "Remap Ini Files To Registry" is checked you are "remapped".
- Open the Loftware Configuration Utility.
- Modify the Memory Threshold
- If you are NOT "remapped", follow these steps:
- Open the Loftware llmwdn32.ini file in notepad:
- Windows XP, 2003: Start | Run | Type: llmwdn32.ini
- Windows 7, 2008: Start | All Programs | Loftware Labeling | System Folders | Configuration | llmwdn32.ini
- Use the "Find" tool to search for the heading [KB:JavaScriptEngine].
- If found: Add the following line under the heading:
- JSRuntimeSize=8
- If not found: Add the following 2 line to the end of the file:
- [KB:JavaScriptEngine]
- JSRuntimeSize=8
- If found: Add the following line under the heading:
- Open the Loftware llmwdn32.ini file in notepad:
- If you are remapped, follow these steps:
- Open regedit:
- Windows XP, 2003: Start | Run | Type: Regedit
- Windows 7, 2008: Start | "Search Programs and Files" dialog | Type: regedit | Select regedit.exe
- Navigate to the following key:
- Windows XP, 2003 32 bit: HKEY_LOCAL_MACHINE\SOFTWARE\Loftware, Inc.\llmwdn32.ini
- Windows 7, 2008 64 bit: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Loftware, Inc.\llmwdn32.ini
- Locate sub-key JavaScriptEngine.
- If it does not exist you will need to create it.
- Create a new String value:
- String: JSRuntimeSize
- Value: 8
- Open regedit:
- If you are NOT "remapped", follow these steps:
Result
If the increased value is sufficient you will no longer receive the referenced error. If the new value is not sufficient you can increase it again. It is recommended that you use 4MB increments.
Article Number
2015032
Versions
LPS version 9.8 and higher.
Environment
All supported Windows environments.