What does HRESULT 0x80004031 (CO_E_THREADPOOL_CONFIG) mean?

 
Previous Next
CO_E_TRACKER_CONFIG CO_E_SXS_CONFIG

CO_E_THREADPOOL_CONFIG

COM thread-pool configuration is invalid

CO_E_THREADPOOL_CONFIG is HRESULT 2147500081 (0x80004031) from winerror.h. The documented description is “The provided thread pool configuration is invalid.” The value must be interpreted at COM runtime or server hosting settings controlling worker count, callback behavior, or scheduling.

The configured thread-pool values cannot be applied safely by the runtime.

Where the result appears

  • This result may surface in COM runtime or server hosting settings controlling worker count, callback behavior, or scheduling.

Typical causes and interpretation

Common cause categories are: minimum exceeds maximum; a limit is outside supported range; stale settings target a different host; shutdown behavior is contradictory. The candidate causes are alternatives, so test one precondition at a time instead of applying several broad repairs together.

Key distinction: the configured thread-pool values cannot be applied safely by the runtime.

Correct handling and recovery

The appropriate recovery is to validate all related values as one unit, restore documented defaults, and restart the host so no workers remain from the invalid generation.

Practical scenario

An operator sets a maximum below the configured minimum; startup rejects the pool configuration rather than creating an unpredictable worker set.

Difference from related HRESULTs

CO_E_ASYNC_WORK_REJECTED is a runtime submission failure after a pool exists; this code prevents construction of the pool configuration.

References


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