| Previous | Next |
| SCARD_E_TIMEOUT | SCARD_E_NO_SMARTCARD |
SCARD_E_SHARING_VIOLATION
SCARD_E_SHARING_VIOLATION Another connection already holds the smart card in a way that conflicts with the requested access. This often occurs when one application uses exclusive sharing or holds a transaction while another application tries to connect or transmit.
What to check
- Inspect the requested
SCARD_SHARE_*mode and whether another application, service, or middleware component has the card open. - Use shared access when the operation permits it, and reserve exclusive access for short critical sections only.
- Make sure every successful
SCardBeginTransactionhas a matchingSCardEndTransactioneven when an error path is taken.
Microsoft: SCardBeginTransaction
Microsoft: SCardEndTransaction
Looking for a different code? Search another status or error code.