I had this problem earlier this year when I first tried the new reader. 
I filled it in the 'must look into sometime box' and went back to the
old version but I hadn't got round to looking at it until last week when
I tried to move my code from NT to W2K and got the same problem using
the old PCSC10 terminal.

To outline the problem:
On NT the old PCSC code worked fine.  The new PCSC code worked for the
first command (select APP) then failed with a 6D00 for all subsequent
commands.

On W2K the old PCSC code and the new PCSC code both worked for the first
command (select APP) then failed with a 6D00 for all subsequent
commands.

I traced the problem to how I was handling the opening and closing of
channels using the OCF openSlotChannel and closeSlotChannel methods.

I used to open a channel just before sending an APDU then immediately
close it.  I found this made the underlying windows smart card service
more reliable as, if some error occurred in my system when the slot
channel was open, the smart card service could be left in an
unpredictable state frequently being unable to be stopped using the
services panel (or net stop command) and requiring a reboot of the
machine to sort it out - hey it's windows what did I expect - quality!?

Using NT and the old PCSC code this worked fine.

When switching to W2K or the new PCSC code I found that closing and
reopening the slot channel has the effect of resetting the card so that
the app is no longer selected.

The solution was to restructure my code so that the slot channel gets
opened when a card is inserted and closed when it is removed (or an
exception occurs).

Hope this helps.

Brian

[EMAIL PROTECTED] wrote:
> 
> HI All
> 
> Have anyone tried the new Pcsc10CardTerminal from gemplus dev website? I tried
> with gemplus JCardManager, now I can select card manager, authenicate, and scan
> card, no more 000057 error..... however, new problem is that when I try to
> select my custom-made applet, a 6D00 error occur...... any help?
> 
> Michael Lee
> 
> ---
> > Visit the OpenCard web site at http://www.opencard.org/ for more
> > information on OpenCard---binaries, source code, documents.
> > This list is being archived at http://www.opencard.org/archive/opencard/
> 
> ! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
> ! to
> !                           [EMAIL PROTECTED]
> ! containing the word
> !                           unsubscribe
> ! in the body.


---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.

Reply via email to