[Pcsclite-muscle] SCARD_E_NOT_TRANSACTED

Ludovic Rousseau ludovic.rousseau at gmail.com
Wed May 18 13:47:22 UTC 2016


2016-05-17 16:30 GMT+02:00 Christophe FERRANDO <
christophe.ferrando at sylyca.com>:

> Hi,
>

Hello,


>
>
> I currently use pcsc-lite version 1.8.15.
>
>
>
> If i use these instructions (C Program)
>
>
>
>                rv = *SCardEstablishContext*(SCARD_SCOPE_USER, NULL, NULL,
> &hContext);
>
>                CHECK("SCardEstablishContext", rv)
>
>                rv = *SCardConnect*(hContext,"*My Drive*",
>
>                          SCARD_SHARE_EXCLUSIVE,SCARD_PROTOCOL_T0, &hCard,
> &dwActiveProtocol);
>
>                CHECK("SCardConnect", rv);
>
>                rv = *SCardEndTransaction*(hCard,SCARD_LEAVE_CARD);
>
>                CHECK("SCardEndTransaction", rv);
>
>                rv = *SCardDisconnect*(hCard, SCARD_LEAVE_CARD);
>
>                CHECK("SCardDisconnect", rv)
>
>                rv = *SCardReleaseContext*(hContext);
>
>                CHECK("SCardReleaseContext", rv)
>
>
>
> I have no errors.
>
>
>
> I expected SCARD_E_NOT_TRANSACTED because i call ScardEndTransaction
> without a previous call to ScardBeginTransaction.
>
> But the result of SCardEndTransaction is E_SUCCESS.
>

That is strange.
On my side I get the expected behavior:
SCardEndTransaction: Transaction failed. 0x80100016

Can you share your complete source code?

Can you also generate a pcscd trace as documented in
http://pcsclite.alioth.debian.org/pcsclite.html#support

Thanks

-- 
 Dr. Ludovic Rousseau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pcsclite-muscle/attachments/20160518/f5f6119c/attachment.html>


More information about the Pcsclite-muscle mailing list