I also tried with our proprietry card for which i am
developing the card driver. Error is occuring with it
also.
I think following is the reason for the error. In XP,
I think the system is not cleanly closing all the CSP
context it acquired. This result in CSP not closing
the all the P11 session
More info on this. I think it is an ID Ally bug.
Looking at spy and opensc debug logs, It looks like
the CSP is called when a card is removed sounds reasonable.
The Id Ally does C_Initialize, C_GetSlotList,
a loop over the 8 slots for C_GetSlotInfo
then a C_Finalize.
I then logged off and try