What does HRESULT 0x80041780 (WBREAK_E_END_OF_TEXT) mean?

 
Previous Next
FILTER_E_PARTIALLY_FILTERED WBREAK_E_QUERY_ONLY

WBREAK_E_END_OF_TEXT

The word breaker reached the end of its text source

WBREAK_E_END_OF_TEXT is HRESULT 0x80041780. Its failure-severity encoding serves as the end-of-source signal in the word-breaking refill contract; emitted words remain valid. Windows documents it as “End of text reached in text source.”

State represented by the HRESULT

This result belongs to refilling or consuming TEXT_SOURCE during IWordBreaker::BreakText. All source characters have been processed and no further buffer can be supplied.

Word breakers process TEXT_SOURCE buffers and report words or phrases through sinks. During diagnosis, locale, mode, refill behavior and component registration must be captured together.

Likely triggers

  • At step 1, the refill callback reaches true end of input
  • At step 2, an empty source terminates immediately
  • At step 3, the caller treats the terminal code as an abnormal language failure

Data for diagnosis

  • TEXT_SOURCE iCur and iEnd positions.
  • Refill callback return sequence.
  • Number of tokens already emitted.
  • Locale and word-breaker CLSID.

Investigation order

  1. Verify character positions never move beyond iEnd.
  2. Confirm the callback returns this status only at actual end of source.
  3. Retain words and phrases emitted before termination.
  4. Test empty, single-buffer and multi-buffer sources.

Correct response

Finish word breaking normally. Retry only for a new or changed text source, not for the exhausted one.

Scope of the signal

It does not indicate failed initialization or a missing language database.

Related HRESULT values

WBREAK_E_INIT_FAILED prevents processing from starting; it closes successful traversal.

Example in a pipeline

A word breaker consumes three refill buffers and receives end-of-text from the fourth callback. The indexer accepts all tokens and closes the item.

Official Microsoft references


Looking for a different code? Search another status or error code.