Informix Error -16335: Window can't be adjusted by number of lines specified.
Cause and resolution
Window can't be adjusted by number of lines specified.
The minimum number of lines in the Source window or in the Command window one, not counting the Source window line that displays the current module name. On a standard 24-line terminal, the maximum number of lines in either window is 18, or L-6 where L is the number of lines that the terminal supports.
The argument of a GROW command is not the new window size but the increment to the current window size. To change the size of a window in the Debugger screen, enter a GROW command to produce window sizes within this range.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-16335 fires when a GROW command's increment would push a window outside its allowed size
range — per the official guidance. The Source/Command window must have at least 1 line
(not counting the Source window's module-name line), and at most L-6 lines (18 on a
standard 24-line terminal), where L is the terminal's supported line count.
- A
GROWincrement that would take the window below the minimum or above the maximum allowed size, per the official guidance — the direct, only cause.
Solutions / Resolution
- Enter a
GROWcommand whose increment keeps the window within the allowed range, per the official guidance — rememberingGROW's argument is an increment to the current size, not the new size itself.
Examples
N/A
No specific triggering statement is documented beyond an out-of-range GROW increment.
Diagnostic Checks
- Check the window's current size and the
GROWincrement, and confirm the resulting size falls between 1 andL-6.
Related Errors / Related Topics
- -16316 — "A small integer is expected." A related
GROW-command error, about the argument not being a valid integer at all rather than a valid integer outside the allowed range.
A GROW increment would push the window outside its allowed size range — recalculate the
increment against the current size and the 1 to L-6 range.