Microsoft Knowledge Base Email Alertz

The operating system may stop responding when you try to put the operating system into S3 sleep after you perform a surprise removal of a USB device on a Windows-based computer

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 955986 - Last Review: January 15, 2010 - Revision: 2.0

The operating system may stop responding when you try to put the operating system into S3 sleep after you perform a surprise removal of a USB device on a Windows-based computer

SYMPTOMS

On a Microsoft Windows-based computer, you perform a surprise removal of a universal serial bus (USB) device. When you try to put the operating system into S3 sleep (standby), the operating system may stop responding. When this problem occurs, the Plug and Play (PnP) manager may be unable to process any device removal actions or any device enumeration actions.

This problem may occur if the USB device is implemented by a Kernel-Mode Driver Framework driver that reads data from a bulk endpoint on the USB device using a USB Continuous Reader. A USB Continuous Reader is a framework-supplied mechanism.

This problem may occur in one of the following Windows operating systems:
  • Windows Server 2008
  • Windows Vista
  • Windows Server 2003
  • Windows XP

CAUSE

This problem is caused by an error in the Microsoft Kernel-Mode Driver Framework version 1.7 and earlier, and may affect USB devices with drivers written for the Kernel-Mode Driver Framework version 1.7 and earlier.

RESOLUTION

This problem is scheduled to be fixed in the Kernel-Mode Driver Framework version 1.9 that is scheduled for release in the Microsoft Windows Driver Kit for Windows 7. To resolve this problem, developers of USB device drivers should build and install the driver by using the Kernel-Mode Driver Framework version 1.9.

WORKAROUND

To work around this problem, set the NumPendingReads member to 1 in the Kernel-Mode Driver Framework driver code when you configure a continuous reader for a USB device that uses the Kernel-Mode Driver Framework.

If the rate of the read events on the affected USB endpoint (pipe) is high, this workaround may cause occasional loss of the data that is received from the USB device. For example, if the USB endpoint has data that must be read while a previously completed single read request is being processed by the owning driver, data loss may occur.

MORE INFORMATION

For more information, see the following topics of the Windows Driver Kit documentation on the following Microsoft Developer Network (MSDN) Web sites:
http://msdn.microsoft.com/en-us/library/aa490269.aspx (http://msdn.microsoft.com/en-us/library/aa490269.aspx)
http://msdn.microsoft.com/en-us/library/aa492612.aspx (http://msdn.microsoft.com/en-us/library/aa492612.aspx)
http://msdn.microsoft.com/en-us/library/aa501716.aspx (http://msdn.microsoft.com/en-us/library/aa501716.aspx)
http://msdn.microsoft.com/en-us/library/aa492734.aspx (http://msdn.microsoft.com/en-us/library/aa492734.aspx)

APPLIES TO
  • Microsoft Windows XP Professional
  • Microsoft Windows XP Home Edition
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • Microsoft Windows Server 2003, Standard x64 Edition
  • Microsoft Windows Server 2003, Enterprise x64 Edition
  • Microsoft Windows Server 2003, Datacenter x64 Edition
  • Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems
  • Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems
  • Windows Server 2008 Standard
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Datacenter
  • Windows Server 2008 Standard without Hyper-V
  • Windows Server 2008 Enterprise without Hyper-V
  • Windows Server 2008 Datacenter without Hyper-V
  • Windows Server 2008 for Itanium-Based Systems
  • Windows Vista Business
  • Windows Vista Enterprise
  • Windows Vista Home Basic
  • Windows Vista Home Premium
  • Windows Vista Ultimate
  • Windows Vista Business 64-bit Edition
  • Windows Vista Enterprise 64-bit Edition
  • Windows Vista Home Basic 64-bit Edition
  • Windows Vista Home Premium 64-bit Edition
  • Windows Vista Ultimate 64-bit Edition
Keywords: 
kbexpertiseinter kbbug kbsurveynew KB955986
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate