[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-smartcardddk
Subject:    Error calling SmartcardDeviceControl
From:       Lin Wai Hung <waihung () ACS ! COM ! HK>
Date:       1998-06-08 4:46:32
[Download RAW message or body]


Hi,

I got an fatal error when calling SmartcardDeviceControl in the new version
of IFDTEST.EXE (in the beginning of Part II). My driver pass all the tests
in the first version of IFDTEST.EXE.

Before calling the SmartcardDeviceControl, my VxD is called with Service
code = 0x00310008 (IOCTL_SMARTCARD_GET_ATTRIBUTE) and tag = 0x00010100
(SCARD_CLASS_VENDOR_INFO). I passed the call to SmartcardDeviceControl and
I think the call is failed inside smclib.vxd.

The sequence of IFDTEST (Part B) calling my VxD as observed from the
debugger terminal is as follow:

1. Call DIOC_Open (To open the driver)
2. Call IOCTL_SMARTCARD_GET_ATTRIBUTE (Success)
3. Call IOCTL_SMARTCARD_GET_ATTRIBUTE (Success)
4. Call IOCTL_SMARTCARD_IS_ABSENT (Success) (There is no card in reader)
5. Call IOCTL_SMARTCARD_GET_ATTRIBUTE (Fail - Page Fault...PC hang)

>-- Debug Terminal (Start)
Page_Fault: instance/hooked fault in non-VM address 1
eax=00187000 ebx=c1d20154 ecx=000c1587 edx=ffb0561c esi=00000e66 edi=c1599d3c
eip=c000cbfc esp=c1599d38 ebp=c1599d70 iopl=0 -- -- -- nv up di pl nz na PE nc
cs=0028 ss=0030 ds=0030 es=0030 fs=0000 gs=0000  cr2=c1587000  cr3=00796000
0028:c000cbfc 8b07           mov     eax,dword ptr [edi]   ds:c1599d3c=c158700
34##g

Trap 14 (0EH) - Page Fault 0000, Not Present, Read Access, Supervisor
eax=c1520154 ebx=c1d20154 ecx=000c1587 edx=ffb0561c esi=00000e66 edi=c1599d3c
eip=c000cc08 esp=c1599d38 ebp=c1599d70 iopl=0 RF -- -- nv up di NG nz na po nc
cs=0028 ss=0030 ds=0030 es=0030 fs=0000 gs=0000  cr2=c1520164  cr3=00796000
>-- Debug Terminal (End)


I am using Win95 and from my screen, I see only the "Part B" header and
then the computer hang.

Under what condition will smclib.vxd having such an error? Please help

Best Regards,

Lin Wai Hung
Advanced Card Systems Ltd.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic