Re: SCARD_E_NOT_TRANSACTED

Ludovic Rousseau <[email protected]>
Newsgroups gmane.comp.lib.muscle
Message-ID <CAGstE8C9UxfWfx2a02VfnkNw2bxW32KzPgA5w1KfVDNSUR7cvQ@mail.gmail.com>
2016-05-17 16:30 GMT+02:00 Christophe FERRANDO <
[email protected]>:

> 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

_______________________________________________
Pcsclite-muscle mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.