What does HRESULT 0xC0262314 (ERROR_GRAPHICS_MODE_ALREADY_IN_MODESET) mean?

 
Previous Next
ERROR_GRAPHICS_PATH_ALREADY_IN_TOPOLOGY ERROR_GRAPHICS_INVALID_VIDEOPRESENTSOURCESET

ERROR_GRAPHICS_MODE_ALREADY_IN_MODESET

ERROR_GRAPHICS_MODE_ALREADY_IN_MODESET (0xC0262314) means a mode is being inserted into a VidPN mode set even though that set already contains it. The failure is at the individual mode insertion step, not necessarily in the topology or the monitor data.

Mode-set ownership and lifetime

Source and target mode-set interfaces expose routines that create a new mode-info structure, add it to a set, enumerate existing modes, and pin a selected mode. The manager creates the mode-info object and its identifier; after a successful add, the set owns that mode record.

Checks before adding a mode

  • Enumerate the set first and compare the candidate with existing mode identities and relevant descriptors.
  • Do not add the same mode again after a retry or after a callback resumes from partial enumeration.
  • Keep each mode-info structure on one ownership path: add it once, or explicitly release it if it will not be added.
  • When capabilities change, create and assign a replacement mode set instead of repeatedly appending prior candidates to the current set.

Why resolution alone is insufficient

Two modes with the same visible width and height can differ in timing, format, rotation, or other properties. Conversely, a duplicate insertion can be detected even when a UI-facing resolution list appears to contain only one entry. Preserve the complete mode descriptor in diagnostics.

Microsoft: mode-set interfaces and update flow

Microsoft: enumeration of unpinned cofunctional modes

Microsoft: graphics status codes


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