What does HRESULT 0xC0AA0503 (E_IMAPI_DF2TAO_MEDIA_IS_PREPARED) mean?

 
Previous Next
E_IMAPI_DF2TAO_MEDIA_IS_NOT_PREPARED E_IMAPI_DF2TAO_PROPERTY_FOR_BLANK_MEDIA_ONLY

E_IMAPI_DF2TAO_MEDIA_IS_PREPARED

E_IMAPI_DF2TAO_MEDIA_IS_PREPARED is returned when an operation is invalid because the Track-at-Once format already holds a prepared media session. PrepareMedia locks the medium for exclusive access, and Microsoft requires ReleaseMedia after the write completes or is canceled.

Find the unmatched PrepareMedia call

  • Record successful PrepareMedia and ReleaseMedia calls as a balanced pair.
  • Run release cleanup on every failure path after preparation, including stream validation and cancellation failures.
  • Do not call PrepareMedia again merely because the next track is about to be added; the prepared session can contain multiple tracks.

This differs from “write in progress.” A prepared session can exist with no active track write. The remedy is therefore not to wait for an operation that is not running, but to complete the intended session or release it. If the application needs a fresh configuration after release, rebuild the session in the documented order and avoid sharing one format object across unrelated burn jobs.

PrepareMedia · ReleaseMedia · IDiscFormat2TrackAtOnce


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