| Previous | Next |
| VFW_S_RESOURCE_NOT_NEEDED | TPC_S_INTERRUPTED |
TPC_S_TRUNCATED
Tablet PC recognizer returned truncated text
TPC_S_TRUNCATED is HRESULT 262738 (0x00040252) from winerror.h. The documented description is “TabletPC inking error code; String was truncated.” The high-order severity bit is clear, so this is a success result, but it carries more information than plain S_OK.
The ink or recognition operation succeeded but the output string was shortened to fit an available limit.
Evidence to preserve
- Preserve recognizer identity and language.
- Preserve input stroke count.
- Preserve output capacity and actual length.
- Preserve original versus displayed text.
- Preserve Unicode conversion and terminating-null handling.
Where the result is encountered
- This result can appear in handwriting recognition results; record the producing interface and method.
- This result can appear in training or personalization UI; record the producing interface and method.
- It can appear in legacy Tablet PC COM applications copying recognizer text into fixed buffers; record the producing interface and method.
State to verify
The central question is whether the application knows the full required length or can request the complete result without losing character boundaries.
Diagnostic sequence
- Capture the raw HRESULT
0x00040252immediately after the returning method and record whether the caller usedSUCCEEDED,FAILED, equality testing, or exception translation. - Verify the method-specific state: the application knows the full required length or can request the complete result without losing character boundaries.
Difference from nearby HRESULT values
INPLACE_S_TRUNCATED is an OLE in-place UI status; it belongs to Tablet PC ink and recognition output.
Correct handling, retry, and recovery
Present the available prefix only as partial data, allocate a larger destination when supported, and preserve the recognition result object until the full text is obtained.
Practical validation scenario
A note application recognizes a long handwritten line into a legacy fixed buffer. It detects it, queries the result through the recognition object, and stores the complete Unicode text.
Developer and administrator guidance
References
Looking for a different code? Search another status or error code.