| Previous | Next |
| UCEERR_RENDERTHREADFAILURE | UCEERR_CONNECTIONIDLOOKUPFAILED |
UCEERR_CTXSTACKFRSTTARGETNULL
UCEERR_CTXSTACKFRSTTARGETNULL is a Windows User Composition Engine (UCE) HRESULT. It indicates that the composition engine expected an initial target in its context stack but found no usable target.
What to check for UCEERR_CTXSTACKFRSTTARGETNULL
- Check window creation, display-target availability, and shutdown timing around the rendering operation.
- Avoid invoking rendering-related work after the target window has been closed or disconnected.
- Look for earlier composition or device failures that could have invalidated the target.
Microsoft guidance for WPF render-thread failures
Diagnostic discriminator: Inspect the first target in the UCE context stack at the failing command. This status specifically requires a null first target rather than an arbitrary invalid visual or transport state.
Looking for a different code? Search another status or error code.