Microsoft KB Archive/104681

From BetaArchive Wiki
Knowledge Base

FIX: StreBlt Sample Causes Windows NT to Hang

Article ID: 104681

Article Last Modified on 7/5/2005


  • Microsoft Visual C++ 2.0 Professional Edition

This article was previously published under Q104681


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


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.


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 query words: 8.00 9.00 1.00 2.00

Keywords: kbbug kbfix kbcompiler KB104681