What does HRESULT 0x88980090 (MILERR_MISMATCHED_SIZE) mean?

 
Previous Next
MILERR_ALREADY_INITIALIZED MILERR_NO_REDIRECTION_SURFACE_AVAILABLE

MILERR_MISMATCHED_SIZE

MILERR_MISMATCHED_SIZE is a Windows Media Integration Layer (MIL) HRESULT. It indicates that a rendering resource, surface, bitmap, or related object has dimensions inconsistent with the request.

Diagnostic discriminator: Record logical size, pixel size, stride, DPI, and target dimensions at the failing call. If recreating size-dependent resources after a resize makes the same content render, stale or inconsistent resource dimensions caused the mismatch.

What to check for MILERR_MISMATCHED_SIZE

  • Compare source, destination, stride, and DPI-adjusted dimensions using the same unit system.
  • Recreate size-dependent resources after resizing a window, monitor, or render target.
  • Check integer rounding and pixel-format alignment when converting logical layout size to a backing surface size.

Microsoft documentation about WPF hardware-accelerated rendering


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