UMDF WudfHost.exe remains

I’m using a UMDF based driver.
My application opens a handle to the driver, closes it, and the device is being disconnected phyisacally from the host. The application keeps running.
I see in task manager that WUDFHost.exe still runs, even though the device has been disconnected.
What could cause this?

Thanks,
Gadi

Are you sure that this is your driver’s wudfhost vs another driver’s? what does device manager look like? Does it still show the device? Does your OnReleaseHardware or OnD0Exit get called when you physically remove the device?

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@n-trig.com
Sent: Wednesday, August 27, 2008 7:54 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] UMDF WudfHost.exe remains

I’m using a UMDF based driver.
My application opens a handle to the driver, closes it, and the device is being disconnected phyisacally from the host. The application keeps running.
I see in task manager that WUDFHost.exe still runs, even though the device has been disconnected.
What could cause this?

Thanks,
Gadi


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

The app has an open handle to the device which is blocking device
removal. Your app should listen for device change notifications and
close it’s handle when it sees a surprise removal.

-p

Sent from my phone - please excuse the typos

On Aug 27, 2008, at 7:53 AM, “xxxxx@n-trig.com
wrote:

> I’m using a UMDF based driver.
> My application opens a handle to the driver, closes it, and the
> device is being disconnected phyisacally from the host. The
> application keeps running.
> I see in task manager that WUDFHost.exe still runs, even though the
> device has been disconnected.
> What could cause this?
>
> Thanks,
> Gadi
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>