FIX: Accessing Image Property of PictureBox Diminishes Resources
Article ID: 174825
Article Last Modified on 9/27/2004
APPLIES TO
- Microsoft Visual Basic 5.0 Learning Edition, when used with:
- Microsoft Windows 98 Standard Edition
- Microsoft Windows Millennium Edition
- Microsoft Visual Basic 5.0 Professional Edition, when used with:
- Microsoft Windows 98 Standard Edition
- Microsoft Windows Millennium Edition
- Microsoft Visual Basic 5.0 Enterprise Edition, when used with:
- Microsoft Windows 98 Standard Edition
- Microsoft Windows Millennium Edition
This article was previously published under Q174825
SYMPTOMS
Using the Image property of a PictureBox control repeatedly diminishes GDI
and System resources on Windows 95, Windows 98, or Windows Me.
RESOLUTION
Use the BitBlt API function to provide the same functionality as the Image
property. The following article in the Microsoft Knowledge Base provides
information about using the BitBlt API function:
147810
: HOWTO: Use Windows BitBlt Function in Visual Basic Application
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in Visual Basic 6.0.
Additional query words: memory leak resource
Keywords: kbbug kbfix kbvbp600fix kbcontrol KB174825