Hi!
I have had some trouble with timeouts when running a simple Opencard
application (ReadFile.java from OCF Programmer's guide). When I run the
application the dialog "Card Holder Verification" appears and I type in
"password" as CHV 1. The application then exits because of a timeout
exception. This is because a timout value of 30 milliseconds is set in
the class com.ibm.opencard.access.MFC35CHVProvider line 133:

CardTerminalIOControl ioctrl =
      new CardTerminalIOControl(8, 30, null, null);
    CHVControl chvctrl = new CHVControl("Enter your password", numCHV,
                                        CHVEncoder.STRING_ENCODING, 0,
                                        ioctrl);

According to the documentation this timeout value is the number of
seconds to wait for user input, but 30 milliseconds is not enough time
for that (at least not for me). It took me some time to figure these
things out so I thought I would let you guys know about it, maybe it
will help someone!

regards
/Martin Sigbj�rn
Visit the OpenCard Framework's WWW site at http://www.opencard.org/ for
access to documentation, code, presentations, and OCF announcements.
-----------------------------------------------------------------------------
To unsubscribe from the OCF Mailing list, send a mail to
"[EMAIL PROTECTED]" with the word "unsubscribe" in the BODY of the
message.

Reply via email to