Microsoft KB Archive/196282

{|
 * width="100%"|

BUG: GetTextExtentPoint Succeeds with a Released HDC

 * }

Q196282

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), on platform(s):
 * Microsoft Windows 95
 * Microsoft Windows 98

-

SYMPTOMS
When you use GetTextExtentPoint with a released HDC handle, it returns TRUE rather than failing.

RESOLUTION
Take precautions in your code to assure that you are not releasing an HDC prior to using it. You can test your software on Windows NT (where this problem does not exist) to uncover code that improperly uses a released HDC.

STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

Additional query words:

Keywords : kbGDI kbSDKPlatform kbOSWin95bug kbOSWin98bug

Issue type : kbbug

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch