| Previous | Next |
| E_IMAPI_DF2RAW_MEDIA_IS_NOT_PREPARED | E_IMAPI_DF2RAW_CLIENT_NAME_IS_NOT_VALID |
E_IMAPI_DF2RAW_MEDIA_IS_PREPARED
E_IMAPI_DF2RAW_MEDIA_IS_PREPARED indicates that the requested operation is invalid while IDiscFormat2RawCD still owns a prepared DAO session. PrepareMedia locks the medium for exclusive access; ReleaseMedia closes the session and releases that lock.
Find the unmatched PrepareMedia lifecycle transition
- Record every successful
PrepareMediaandReleaseMediaas a balanced pair. - Run release cleanup on failure paths after preparation, including stream-validation and cancellation failures.
- Do not call
PrepareMediaagain merely to retry a write without first resolving and closing the existing session.
A prepared session is not the same as an active write. Waiting for write completion does not fix this state when no write is running. The useful diagnostic is the last successful session operation on the format object. If a new raw image or recorder configuration is needed, release the old session first and then repeat setup in a deliberate order.
PrepareMedia · ReleaseMedia · IDiscFormat2RawCD
Looking for a different code? Search another status or error code.