BUG: GetTextExtentPoint Succeeds with a Released HDC
Article ID: 196282
Article Last Modified on 7/11/2005
APPLIES TO
- Microsoft Platform Software Development Kit-January 2000 Edition, when used with:
- Microsoft Windows 98 Standard Edition
This article was previously published under Q196282
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.
Keywords: kbbug kbgdi kbpending KB196282