On 17/04/07, j.fabre <[EMAIL PROTECTED]> wrote:
Hi all,

Hello,

To disconnect the connection to the card, I use this code (which works
ok with single process accessing the library):

    if (hContext != 0) {
        if (hContext)
            SCardReleaseContext(hContext);
        if (hsCard)
            SCardDisconnect(hsCard,SCARD_LEAVE_CARD);
    }

You should do SCardDisconnect() _before_ SCardReleaseContext()

Finally, I´ll throw some questions which I would like to have a response:

¿Could I get a solution sharing the context between all the process
which access to my smart card shared library?

Each process and each thread within each process shall have its own
PC/SC context. Otherwise strange things may happen.

Bye

--
 Dr. Ludovic Rousseau

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to