You are currently offline, waiting for your internet to reconnect

An application hangs when it calls SignalObjectAndWait in Windows 7 or Windows Server 2008 R2

Symptoms
An application that calls the SignalObjectAndWait and PulseEvent APIs may experience a deadlock in Windows 7 or in Windows Server 2008 R2. If the threads that are signalled by SignalObjectAndWait call PulseEvent to signal the waiting object of the SignalObjectAndWait call, the caller thread of SignalObjectAndWait cannot receive the signal state of the waiting object.
Cause
The Signal and Wait operations are not guaranteed to be performed as atomic operations when an application calls the SignalObjectAndWait function.
Resolution
To resolve this problem, configure the application to call the SetEvent API instead of the PulseEvent API. This method should work in most cases.
Properties

Article ID: 2795543 - Last Review: 01/30/2013 16:19:00 - Revision: 2.0

Windows 7 Enterprise, Windows 7 Professional, Windows 7 Ultimate, Windows 7 Service Pack 1, Windows Server 2008 R2 Standard, Windows Server 2008 R2 Standard without Hyper-V, Windows Server 2008 R2 Enterprise, Windows Server 2008 R2 Enterprise without Hyper-V, Windows Server 2008 R2 Datacenter, Windows Server 2008 R2 Datacenter without Hyper-V, Windows Server 2008 R2 for Itanium-Based Systems, Windows Server 2008 R2 Service Pack 1

  • KB2795543
Feedback
microsoft.com/c.gif?DI=4050&did=1&t=">