Informix Error -50121: Invalid position specified for the ixString::getChar() member function.
Cause and resolution
Invalid position specified for the ixString::getChar() member function.
The value specified for position was NULL, negative, or greater than 32,766, or the position was greater than the length of the existing object. Check the width value (using ixString::getWidth()) before calling ixString::getChar().
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-50121 is raised by the ixString class in the Window Painter GUI builder library — per the official guidance:
The value specified for position was NULL, negative, or greater than 32,766, or the position was greater than the length of the existing object. Check the width value (using ixString::getWidth()) before calling ixString::getChar().
- Invalid position specified for the ixString::getChar() member function, per the official guidance — the direct, documented condition.
Solutions / Resolution
- Check the specific value or object state the message names, per the official guidance, against the constraint it describes.
Examples
N/A
No specific triggering statement is documented beyond the class-library condition described above.
Diagnostic Checks
- Check the specific value, object state, or call sequence that
ixStringflags here, against the constraint the official guidance describes.
Related Errors / Related Topics
- -50123 — "Invalid length specified for the ixString::pad() member function." Another
ixString-related condition in this set. - -50122 — "Invalid length specified for the ixString::truncate() member function." Another
ixString-related condition in this set.
Invalid position specified for the ixString::getChar() member function.