I am working on an application which communicates with a smartcard.. I am using Platform SDK for doing this program. Well, my problem is, when i try to use SCardConnect (), it ruturns an error "SCARD_W_UNRESPONSIVE_CARD" which means The smart card is not responding to a reset. Why this error occurs. Can anybody help me telling which all are the situations the card can not responds to a reset ? I am getting the resourse manager context , but not connecting with the card even though i have inserted the card in the reader.

Note: I have an application that is given by the smart card providers.. if i run that program and terminate that application by not disconnecting the card from the reader, then my VC++ application does not show SCARD_W_UNRESPONSIVE_CARD error.. Why is it so ?