Informix Error -4339: 4GL has run out of data space memory.
Cause and resolution
4GL has run out of data space memory.
Your 4GL program requires more memory than is available. If your program was executing sucessfully prior to this message, examine your code to see if FREE, CLOSE FORM, CLOSE WINDOW, or other 4GL statements can release memory used by 4GL program objects that are no longer needed.
If your program was using a shared memory connection, try setting INFORMIXSHMBASE to a larger value. Alternatively, use a streams (olipcstr) or network (oltlitcp) connection. If you receive this message during compilation, a .4gl source module might be too large to compile. Divide it into smaller modules, and compile them separately. If the error persists, divide the 4GL program into smaller programs.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4339 fires when a 4GL program requires more memory than is available — per the official guidance, this can happen at runtime or during compilation, and has several named causes and remedies depending on which.
- A running program retaining objects (forms, windows, etc.) that are no longer needed,
per the official guidance — check whether
FREE,CLOSE FORM,CLOSE WINDOW, or similar statements could release them. - A shared-memory connection whose
INFORMIXSHMBASEis set too small, per the official guidance — try a larger value, or switch to a streams (olipcstr) or network (oltlitcp) connection. - A
.4glsource module too large to compile, per the official guidance — divide it into smaller modules and compile separately.
Solutions / Resolution
- If the program was previously executing successfully, review the code for objects that
could be released early via
FREE,CLOSE FORM,CLOSE WINDOW, etc., per the official guidance. - If using a shared-memory connection, try a larger
INFORMIXSHMBASE, or switch connection type, per the official guidance. - If this occurs during compilation, split the source module into smaller modules, per the official guidance, and if it persists, split the program itself into smaller programs.
Examples
Releasing a form no longer needed
CLOSE FORM myform
Diagnostic Checks
- Check whether this occurs at runtime or during compilation, and apply the corresponding named remedy.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -4339 in this set yet.
4GL ran out of data space memory — release unneeded objects at runtime, adjust
INFORMIXSHMBASE/connection type, or split an oversized module at compile time.