Microsoft KB Archive/268229

= Deadlock When APC Routine for SetWaitableTimeruser Calls System Interfaces =

Article ID: 268229

Article Last Modified on 2/20/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition

-



This article was previously published under Q268229



SYMPTOMS
In Windows 2000, a deadlock can occur if system calls are made in the APC routine for SetWaitableTimer.

In particular, this problem may occur in scenarios with the following characteristics:
 * A multithreaded program
 * Positive non-zero lPeriod in SetWaitableTimer
 * MsgWaitForMultipleObjectsEx is set to be MWMO_ALERTABLE
 * System calls (for example, Net, Wnet, COM, etc.) are invoked in the APC routine specified in SetWaitableTimer
 * The system calls also invoke alertable internal routines



RESOLUTION
To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack

The English version of this fix should have the following file attributes or later:   Date        Time    Version       Size      File name --  08/10/2000  03:26p  5.0:2195.2103 426,256   Rpcrt4.dll

NOTE: This fix is intended to be used only in Windows 2000. The next release of Windows may not have this fix. You should modify the program to work around this limitation.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 2.



MORE INFORMATION
For additional information about how to install Windows 2000 and Windows 2000 hotfixes at the same time, click the article number below to view the article in the Microsoft Knowledge Base:

249149 Installing Microsoft Windows 2000 and Windows 2000 Hotfixes

Keywords: kbhotfixserver kbqfe kbbug kbfix kbwin2000presp2fix KB268229

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.