| Previous | Next |
| SCARD_E_NO_READERS_AVAILABLE | SCARD_E_NO_KEY_CONTAINER |
SCARD_E_COMM_DATA_LOST
SCARD_E_COMM_DATA_LOST Communication with the smart card was interrupted and data was lost. The documented action is to retry, but the application should first discard the interrupted command state and verify that the card connection is still valid.
Safe recovery
- Use
SCardStatusto check the card and reader state before retransmitting an APDU. - Reconnect after card removal, reset, USB reconnect, reader power loss, or a protocol reset; do not reuse an assumption about the previous transaction state.
- If the error recurs, test the card and reader separately and inspect reader/minidriver events for transport or power instability.
Microsoft: Smart Card architecture
Looking for a different code? Search another status or error code.