FIX: StreBlt Sample Causes Windows NT to Hang

Last reviewed: September 16, 1997
Article ID: Q104681
1.00 2.00 WINDOWS NT kbtool kbfasttip

The information in this article applies to:

  • The Microsoft C/C++ Compiler (CL.EXE), included with:

        - Microsoft Visual C++, 32-bit Edition, versions 1.0 and 2.0
    

SYMPTOMS

Running the StreBlt GDI StretchBlt Win32 application programming interface (API) sample can cause Windows NT to hang.

STATUS

Microsoft has confirmed this to be a problem with Windows NT 3.1. This problem is illustrated by the StreBlt sample supplied with Visual C++ 32- bit Edition. The problem was fixed in Windows NT 3.5.

NOTE: This sample was not included with Visual C++, 32-bit Edition, version 4.0.

MORE INFORMATION

To reproduce the problem, follow these steps:

  1. Build the StreBlt sample using the supplied makefile.

  2. The sample displays a dialog box for the main window. There are three drop-down list controls titled StretchBltMode, Pattern, and Standard ROPs. Select the following in these drop-down lists:

          StretchBltMode    BLACKONWHITE
          Pattern           NULL_BRUSH
          Standard ROPs     PATPAINT
    
    
At this point Windows NT will hang.


Additional reference words: 8.00 9.00 1.00 2.00
KBCategory: kbtool kbbuglist kbfasttip kbfixlist
KBSubcategory: CLIss
Keywords : CLIss kbbuglist kbfasttip kbfixlist kbtool
Version : 1.00 2.00
Platform : NT WINDOWS
Solution Type : kbfix


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: September 16, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.