Help and Support
 

powered byLive Search

Calling EnumObjects() Leaks a Selector

Article ID:229670
Last Review:September 4, 2007
Revision:1.6
This article was previously published under Q229670
If this article does not describe the error message that you are receiving, view the following Microsoft Knowledge Base article to view more articles that describe error messages:
315854 (http://support.microsoft.com/kb/315854/EN-US/) Windows 98 and Windows Me Error Message Resource Center

SYMPTOMS

A program that calls the Win32 EnumObjects() API function may eventually stop working, with the following error message:
Program name caused a General Protection Fault in module GDI.EXE.

Back to the top

CAUSE

The EnumObjects() function leaks a selector each time it is called. If enough calls are made during a particular session, the local descriptor table (LDT) can become exhausted. The computer must then be restarted.

Back to the top

RESOLUTION

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix should have the following file attributes or later:
For Windows 95 versions 4.00.950 and 4.00.950A (Retail and OEM Service Release [OSR1]):

   Date       Time      Version    Size      File name
   ----------------------------------------------------
   04/16/99   10:11am   4.01.971   312,736   Gdi.exe
   04/16/99   10:11am   4.01.971   131,072   Gdi32.dll

For Windows 95 versions 4.00.950B and 4.00.950C (OSR2 and OSR2.5):


   Date       Time      Version     Size      File name
   -----------------------------------------------------
   04/16/99   11:12am   4.00.1112   331,872   Gdi.exe
   04/16/99   11:12am   4.00.1112   129,024   Gdi32.dll

For Windows 98 versions 4.10.1998 (Retail):

   Date       Time     Version     Size      File name
   ---------------------------------------------------
   08/20/99   7:16pm   4.10.1999   345,632   Gdi.exe
   08/20/99   8:03pm   4.10.1999   138,752   Gdi32.dll

For Windows 98 SE version 4.10.2222 (Second Edition):

   Date       Time      Version     Size      File name
   ----------------------------------------------------
   08/20/99   03:51pm   4.10.2223   345,648   Gdi.exe
   08/20/99   05:27pm   4.10.2223   138,752   Gdi32.dll
				

Back to the top

STATUS

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

Back to the top

MORE INFORMATION

One situation in which this problem can occur is when a Microsoft Excel 97 VBA macro sets the PageSetup properties of a worksheet object hundreds of times. For additional information about this problem, please see the following article in the Microsoft Knowledge Base:
192869 (http://support.microsoft.com/kb/192869/EN-US/) OFF97: PageSetup Object Causes Memory Leak and Hangs System
For additional information about Windows 98 and Windows 98 Second Edition hotfixes, click the article number below to view the article in the Microsoft Knowledge Base:
206071 (http://support.microsoft.com/kb/206071/EN-US/) General Information About Windows 98 and Windows 98 Second Edition Hotfixes
For additional information about Windows 95 hotfixes, click the article number below to view the article in the Microsoft Knowledge Base:
161020 (http://support.microsoft.com/kb/161020/EN-US/) Implementing Windows 95 Updates

Back to the top


APPLIES TO
Microsoft Windows 98 Standard Edition
Microsoft Windows 95
Microsoft Windows 98 Second Edition

Back to the top

Keywords: 
kbhotfixserver kbqfe kbgpf kbprb KB229670

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.