V9014¶
- Code
V9014
- Message
String operation operand encoding does not match expected encoding
The VM detected a string operation whose operand encoding (1 for STRING,
2 for WSTRING) does not match the destination’s declared encoding.
The analyzer rejects cross-encoding assignments and operations statically, so this trap is reached only via:
A compiler bug that emits a string opcode whose source and destination disagree on encoding.
A tampered or hand-crafted ``.iplc`` file whose constant pool, data region headers, or temp buffer slots disagree on encoding.
The runtime check is the defense-in-depth layer: even if a static check slips, the trap fires before silently corrupting data.
This error should not occur during normal operation. It indicates a bug in
the IronPLC compiler or VM, or a corrupted .iplc file.
Report this as a bug at https://github.com/ironplc/ironplc/issues with the
.iplc file and the source program that produced it.
Think IronPLC is wrong about this?
If you believe this diagnostic is incorrect, open an issue on GitHub with a small sample that demonstrates the problem.