| Previous | Next |
| TAPI_E_INVALADDRESS | TAPI_E_INVALADDRESSSTATE |
OLE_E_INVALIDRECT
OLE_E_INVALIDRECT: exact failure boundary
0x8004000D corresponds to OLE_E_INVALIDRECT. The platform message is Invalid rectangle. This result is returned while drawing, activation, or in-place positioning of an OLE object. The diagnostic question is whether the supplied rectangle has invalid coordinates, ordering, scale, or relationship to the target window.
Evidence to capture
- Record this result, 0x8004000D, the native method name, process and thread IDs, operation ID, component build, architecture, and elapsed time.
- Capture object generation, link or storage identity, activation state, advise cookie, window lifetime, and presentation format.
- Keep IErrorInfo, provider extended status, relevant device/storage events, and the first lower-level failure.
- When handling this result, unadvise only active cookies, release server and site interfaces in the documented order, and preserve storage if the user cancelled or output is uncertain.
Likely causes to separate
- Left exceeds right or top exceeds bottom.
- Coordinate spaces were mixed.
- Integer overflow or DPI conversion produced impossible bounds.
Focused diagnostic test
Reproduce the same native call with the same object identity and change one cause candidate at a time. Preserve the first provider or lower-layer result and compare object state before cleanup. A different HRESULT after one controlled change is a new boundary, not proof that the original operation is fully repaired.
Correction
normalize the rectangle in the documented coordinate space and recompute it after the target window and DPI are known.
Verification
After correction, repeat the operation that returned this result. Verify the intended API operation completes and that any output, ownership transfer or persistent state is valid; do not treat disappearance of the dialog alone as success.
Technical references
- Microsoft: generic COM and OLE error codes
- Microsoft: IOleObject
- Microsoft: OLE and data-transfer interfaces
- Microsoft: OLE view caching
Looking for a different code? Search another status or error code.
