Informix Error -1211
-1211 Out of memory.
4GL cannot allocate memory for a small, temporary work area that is used for processing an expression. To avoid this error, simplify the program in almost any way to release enough space
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1211 fires when 4GL can't allocate memory for a small, temporary work area used to process an expression — per the official guidance, this is a general memory-pressure condition at expression-evaluation time.
- Overall memory pressure on the running program, per the official guidance — too many windows, variables, or other consumers leaving too little for this temporary work area.
- A particularly complex expression requiring more temporary working space than a simpler one would.
Solutions / Resolution
- Simplify the program to free up sufficient memory, per the official guidance — reduce open windows, global variables, or other memory consumers.
- Simplify the specific expression involved, if it's unusually complex, breaking it into smaller intermediate steps.
Examples
Breaking a complex expression into steps
LET v_step1 = a + b * c;
LET v_step2 = v_step1 / d - e;
LET v_result = v_step2 * f;
-- instead of one large combined expression
Diagnostic Checks
- Review overall memory usage (open windows, global variables) for opportunities to simplify.
- Identify the specific expression that failed, and consider breaking it into smaller pieces.
Related Errors / Related Topics
- -1113 — "Memory allocation error." A related memory error, specific to
BYTE/TEXTvariable assignment rather than expression evaluation. - -1137 — "Cannot open window." A related memory error, specific to window opening rather than expression evaluation.
Insufficient memory for a temporary expression work area — reduce overall memory usage, and simplify the specific expression if it's unusually complex.