Microsoft KB Archive/192869

= OFF: PageSetup Object Causes Memory Leak and Hangs System =

Article ID: 192869

Article Last Modified on 1/23/2007

-

APPLIES TO

 Microsoft Excel 95 Standard Edition, when used with:  Microsoft Windows 95

 Microsoft Windows 98 Standard Edition  Microsoft Excel 95a, when used with:  Microsoft Windows 95

 Microsoft Windows 98 Standard Edition</li></ul> </li> Microsoft Excel 97 Standard Edition, when used with:  Microsoft Windows 95</li></ul>

 Microsoft Windows 98 Standard Edition</li></ul> </li> Microsoft Office 95 Standard Edition, when used with:  Microsoft Windows 95</li></ul>

 Microsoft Windows 98 Standard Edition</li></ul> </li> Microsoft Office 97 Standard Edition, when used with:  Microsoft Windows 95</li></ul>

 <li>Microsoft Windows 98 Standard Edition</li></ul> </li> <li>Microsoft Office XP Standard Edition, when used with: <ul> <li>Microsoft Windows 98 Standard Edition</li></ul> </li> <li>Microsoft PowerPoint 2000 Standard Edition, when used with: <ul> <li>Microsoft Windows 95</li></ul>

<ul> <li>Microsoft Windows 98 Standard Edition</li></ul> </li> <li>Microsoft PowerPoint 2002 Standard Edition, when used with: <ul> <li>Microsoft Windows 98 Standard Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q192869

<div class="symptoms_section">

SYMPTOMS
A procedure is written in Excel Visual Basic to set PageSetup properties of a Worksheet object. If this code is run hundreds of times, the system becomes unstable, and there is not enough memory to start other applications. In Excel, you may receive the following error messages:

An error has occurred in your program. To keep working anyway, click Ignore and save your work in a new file. To quit this program, click Close. You will lose information you entered since your last save.

Excel caused a General Protection Fault in module GDI.EXE.

<div class="cause_section">

CAUSE
This problem is caused by a memory leak when using the PageSetup object when a printer is installed on the system.

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

<div class="moreinformation_section">

MORE INFORMATION
This problem does not occur on Windows NT. The problem only occurs on Windows 95 and Windows 98.

For additional information about this hotfix, please see the following article in the Microsoft Knowledge Base:

229670 Calling EnumObjects Leaks a Selector

Additional query words: kbDSupport kbDSD IPF GPF KRNL386.EXE 8.0 OFF97 Off95

Keywords: kbbug kbfix KB192869

-

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

© Microsoft Corporation. All rights reserved.