What does HRESULT 0x80010114 (RPC_E_INVALID_OBJECT) mean?

 
Previous Next
RPC_E_INVALID_IPID RPC_S_CALLPENDING

RPC_E_INVALID_OBJECT

Requested COM object no longer exists

RPC_E_INVALID_OBJECT is HRESULT 2147549460 (0x80010114) from winerror.h. AllStat describes it as “The requested object does not exist.” In the COM/RPC call control, message filtering, apartment routing, marshaling, security negotiation, or remote object lifetime, the code identifies a specific failure boundary and should not be replaced by a generic COM exception.

The caller should keep this result intact through logging, exception translation, and RPC or language projection boundaries.

Decisive interpretation boundary

Before choosing recovery, verify that server object lifetime and client reference ownership are reconstructed without assuming the process itself failed. If this condition cannot be proven for this HRESULT, stop before consuming outputs or repeating side effects.

Also confirm that all observed objects, tokens, buffers, proxies, metadata files, or ACLs belong to the current operation generation and were not retained from an earlier attempt.

Where it is encountered

  • Cross-apartment or cross-process COM method invocation and activation. Record the interface, method, component version, thread, apartment, process, and correlation ID.
  • STA message filtering, reentrancy, call cancellation, timeout, or retry handling.
  • DCOM security initialization, proxy/stub marshaling, OBJREF processing, and server object lifetime.

The immediate focus for this HRESULT is a proxy or call that refers to an object identity removed, released, rundown, or invalidated on the server. Keep it attached to that operation; the same numeric severity outside the owning API does not supply enough context.

Correct handling and recovery

Release the invalid proxy, reacquire or recreate the object through its documented owner, and stop calls during server teardown.

An unchanged retry loop for this HRESULT can duplicate effects, deepen reentrancy, or hide an invalid lifetime transition.

Difference from nearby HRESULTs

It faults object identity; RPC_E_INVALID_IPID can fault a particular interface pointer identity on an object.

A support tool discussing it should name the neighboring result only after the originating API and decisive state are known.

Lifetime, retry, and cleanup rules

After it, determine whether the current object, interface pointer, call context, token, stream, metadata reader, asynchronous operation, or access-control instance remains valid. Release only resources owned by the failing attempt, cancel callbacks through their documented mechanism, and avoid double close, double commit, repeated activation, or replay of a non-idempotent remote method.

The retry policy for this HRESULT should state the trigger, maximum attempts, cancellation owner, and reconciliation step for effects that may have completed elsewhere.

Developer and administrator guidance

When it crosses native, managed, scripting, RPC, or WinRT projection boundaries, preserve the unsigned 32-bit HRESULT. Unit tests for this HRESULT should assert the code-specific postcondition and resource ownership, not merely that an exception was thrown.

Document the owner of the boundary so future occurrences can be correlated across client, proxy, server, package, and security logs. Define who owns retry, cancellation, cleanup, policy changes, package repair, and user-facing messaging for this HRESULT.

Practical scenario

A session object is destroyed when its parent document closes, but a background task keeps its proxy. Cancellation now follows parent lifetime.

A regression test should reproduce it, assert the raw HRESULT and all relevant outputs, then correct only the decisive condition and verify the intended success or neighboring failure result.

References


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