Re: SCardSvr fills event log

From: Mikael Andersson ("Mikael)
Date: 01/10/05


Date: Mon, 10 Jan 2005 11:07:37 +0100

Hi,
This is still a problem for me. Anyone got a clue to what might be wrong?

/Mikael

"Mikael Andersson" <018421608(at)telia.com> skrev i meddelandet
news:#mormWn7EHA.3756@TK2MSFTNGP14.phx.gbl...
> Hi,
> I have a driver that seems to misbehave. The SCardSvr service does not get
> informed that the driver has unloaded and keeps trying to get status
> changes. The problem is that this rapidly fills the event log...
>
> The following output is displayed in the kernel debugger:
> "SCardSvr!CServiceThread::DoGetStatusChange *WARNING* Get Status Change
> TID=0x388 received unexpected exception: Cannot find a smart card reader."
>
> And it also writes to the event log: "Get Status Change TID=0x388 received
> unexpected exception: Cannot find a smart card reader. For more
information,
> see Help and Support Center at http://go.microsoft.com/fwlink/events.asp."
>
> The messages are generated at a rate of approx. once every 3 seconds.
>
> I have searched the DDK and the sample files but have no really good idea
> where the problem is... Examining the debug output reveals that the
SCardSvr
> is informed about the driver being unloaded, the message is:
> "SCardSvr!MonitorReader *WARNING* Reader return code takes reader
>
'\\?\SERENUM#CMX237D#5&18782ae7&0&0000#{50dd5230-ba8a-11d1-bf5d-0000f805f530
> }' offline: The operation completed successfully." But, obviously, this
is
> not enough.
>
> Please, if someone knows how to fix this problem (i.e. which functions to
> call from the driver when it is about to unload) plz. mail me at
> mikael.andersson(((A)))comex.se or reply to this forum.
>
> Best regards
> Mikael
>
>



Relevant Pages

  • Re: 1394 + WinXP SP2
    ... >> all unload paths for your device. ... My own drivers do very light async I/O, ... I did not do extensive SP2 testing. ... you try your device with CUV and driver verifier with SP1? ...
    (microsoft.public.development.device.drivers)
  • Re: Self-removing driver
    ... I ended up following Volodymyr M. Shcherbyna's suggestion: ... Incremented HandleCount on IRP_MJ_CREATE ... to my Unload routine to prevent a closing conflict as suggested by Pavel A. ... Windows Filesystem and Driver Consulting ...
    (microsoft.public.development.device.drivers)
  • Re: Notification of Driver Unloading
    ... I am not sure if you can force a driver not to unload, ... that this happens becuase the applications is communicating with the COM ... Is there any notification like this? ...
    (microsoft.public.windowsce.platbuilder)
  • Re: WdfControlDeviceInitSetShutdownNotification
    ... why wouuldn't you just do it on device unload as well? ... Please do not send e-mail directly to this alias. ... I tried using EvtDeviceD0Exit but my driver gets called when it is unloaded, ... register shutdown notification. ...
    (microsoft.public.development.device.drivers)
  • Re: newbus integration of MOD_QUIESCE
    ... an unload request is treated as a blocking quiesce request. ... such as "State transition driver into 'shutting ... load overlap? ... it" may mean one thing for a driver, but something else for a file system. ...
    (freebsd-arch)