On Feb 16, 2008 2:42 PM, Ludovic Rousseau <[EMAIL PROTECTED]> wrote:
> On Feb 16, 2008 12:28 AM, Eric Walter <[EMAIL PROTECTED]> wrote:
> > it seems SCardReleaseContext will just return SCARD_E_NO_SERVICE and skip
> > removing the local context if the daemon is not running. From
> > pcsc-lite-1.4.99-svn-2812:
> >
> >
> >
> > LONG SCardReleaseContext(SCARDCONTEXT hContext)
> > {...
> >
> > if (SCardCheckDaemonAvailability() != SCARD_S_SUCCESS)
> > return SCARD_E_NO_SERVICE;...
> >
> > SCardLockThread();
> > SCardRemoveContext(hContext);
> > SCardUnlockThread();
> >
> >
> > PROFILE_END
> >
> >
> > return scReleaseStruct.rv;
> > }
> >
> > Now, an application might at a later time try to allocate a new context
> > successfully if the daemon ist alive again. If this happens a couple of
> > times, it seems like the slots for contexts will be exhausted and
> > SCardEstablishContext() will then fail. So wouldn't it seem to be the proper
> > thing to do the SCardRemoveContext() regardless of daemon availability?
>
> That would be a good idea.
Done in revision 2833.
--
Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle