BUG: Screen Saver Not Getting WM_DESTROY in Windows NT

Last reviewed: December 11, 1995
Article ID: Q140727
The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API) included with Microsoft Windows NT versions 3.5, 3.51

SYMPTOMS

When a 32-bit screen saver running under Windows NT 3.5 or 3.51 terminates due to a mouse move, mouse click, or key press, although the application terminates, the window never gets the WM_DESTROY message. Failure to receive this message poses a problem as applications are not able to call clean-up routines such as deleting GDI objects, freeing memory objects, and so on. This results in a memory leak and further reduction of system resources each time the screen saver application is run.

This problem does not occur when the screen saver is run in Test mode under Windows NT's Control Panel. In Test mode, the screen saver receives the WM_DESTROY message.

STATUS

Microsoft has confirmed this to be a problem with the Scrnsave.lib file that shipped with the Win32 SDK for Windows NT 3.51 and Windows 95. It is scheduled to be fixed in the next release of the Win32 SDK. However, this problem is specific to Windows NT; it does not occur with 32-bit screen savers under Windows 95.


Additional reference words: 3.50
KBCategory: kbgraphic kbbuglist
KBSubcategory: GdiScrSav


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: December 11, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.