Dynamically Loading/Unloading WINRUI32.DLL Causes System Hang

Last reviewed: February 1, 1996
Article ID: Q138388
The information in this article applies to:
  • Microsoft SNA Server versions 2.0, 2.1, and 2.11

SYMPTOMS

When you dynamically load and unload the WINRUI32.DLL, your computer hangs. This symptom occurs sporadically.

CAUSE

This problem occurs during a call to FreeLibrary (hLibModule) where hLibModule was previously set to the result of a call to LoadLibrary (WINRUI32.DLL).

The hang occurs when the WINRUI32.DLL is unloaded by the FreeLibrary()call. The hang is caused by WINRUI32.DLL trying to remove its DMOD routing procedure during DLL detach processing. There are certain procedures that cannot be reliable performed inside detach processing, for example, waiting for something like the DMOD routing proc table to become available.

Existing applications that do not call WinRUIStartup/WinRUICleanup continue to function as before.

RESOLUTION

Microsoft has updated the file LIBS\WIN32WINRUI32.DLL to correct this problem.

The fix to the WINRUI32.DLL removes the RUI routing procedure during the processing of the WinRUICleanup() call and ensures that the DLL detach processing does not attempt to do it again. To properly load and unload the DLL you need to always call WinRUIStartup before your first RUI verb and WinRUICleanup before freeing the WINRUI32.DLL.

STATUS

Microsoft has confirmed this to be a problem in SNA Server for Windows NT. This problem was corrected in the latest SNA Server for Windows NT, 2.11 U.S. Service Pack. For information on obtaining the Service Pack, query on the following word in the Microsoft Knowledge Base (without the spaces):

   S E R V P A C K


KBCategory: kbnetwork kbinterop kbprg kbbug2.00 kbbug2.10 kbbug2.11
KBSubcategory: ntnetserv ntprotocol
Additional reference words: prodsna 2.00 2.10 2.11


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 1, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.