Help and Support
 

powered byLive Search

Creating a View of a File May Leak Pages of Memory

Article ID:242161
Last Review:January 25, 2007
Revision:1.5
This article was previously published under Q242161

SYMPTOMS

A program that uses the Win32 CreateFileMapping() and MapViewOfFile() functions to create and map views of files may experience memory leaks when running on Windows 98 or Windows 98 Second Edition.

Back to the top

CAUSE

After you create a view of a file with the Win32 CreateFileMapping() and MapViewOfFile() functions, locked non-cached pages are used to create the view of the file. When the UnmapViewOfFile() and CloseHandle() functions are called to release the view of the file, the locked non-cached pages are not returned to the system.

An accounting problem in Vmm.vxd causes an internal allocation routine to not allocate additional pages to functions (for example, the MapViewOfFile function). As a result, it appears to the calling program as though the system is out of available pages of memory.

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-language version of this fix should have the following file attributes or later:
Date Time Version Size File name Platform
-------------------------------------------------------------------------------
9/21/99 11:07am 4.10.1999 472,564 Vmm.vxd Windows 98
9/21/99 10:33am 4.10.2223 472,564 Vmm.vxd Windows 98 Second Edition
				

Back to the top

STATUS

Microsoft has confirmed that this is a problem in Windows 98 and Windows 98 Second Edition.

Back to the top

MORE INFORMATION

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

Back to the top


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

Back to the top

Keywords: 
kbhotfixserver kbqfe kbbug kbfix kbprogramming KB242161

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by E-mail, 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.