Microsoft KB Archive/193365

= BUG: GDI Memory Leak in Developer Studio IDE =

Article ID: 193365

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Windows 95
 * Microsoft Windows 98 Standard Edition
 * Microsoft Visual C++ 5.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition

-



This article was previously published under Q193365



SYMPTOMS
Windows 95 or Windows 98 send messages stating that low GDI memory is available, which occurs due to the constant repainting of the Developer Studio IDE.



CAUSE
There is a memory leak in the IDE. The problem occurs during the repainting of the triangle-shaped icon below the x (that is, close) icon on the top left corner of the output window, as well as the other triangle-shaped icon on the top-right corner of the workspace window. If you have the Plus pack installed, GDI resources fall faster.



RESOLUTION
Close and restart Developer Studio.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected Visual Studio 6.0 for Windows.



Steps to Reproduce Behavior

 * 1) Start Developer Studio.
 * 2) Start a tool that is capable of displaying the GDI memory, such as Resource Meter. To find the Resource Meter, click Start and then point to Programs, Accessories, and System Tools. If you cannot find it, you can install it from the Windows CD.
 * 3) Start resizing Developer Studio or perform some task that causes the IDE to refresh, such as placing another window on top of Developer Studio and then switching back to Developer Studio.

NOTE: If you are resizing windows, make sure that you have selected the "Show window contents while dragging" check box. To do this, go to the Control Panel and double-click Display. If you are using windows 98, click the Effects tab in the Display properties dialog box and then select the "Show window contents while dragging" check box. If you are using Windows 95, the Effects tab is not available by default. However, if you install the Plus pack a Plus tab appears where you can select the "Show window contents while dragging" check box.
 * 1) GDI memory starts to drop by 80-100 bytes every time Developer Studio repaints.
 * 2) Soon GDI memory drops below 100 bytes. The operating system will indicate that the system is running low on GDI memory, which disrupts normal execution of all applications.

Keywords: kbbug kbdevstudio kbfix kbide kbvs600fix KB193365

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.