Microsoft KB Archive/242161

= Creating a View of a File May Leak Pages of Memory =

Article ID: 242161

Article Last Modified on 1/25/2007

-

APPLIES TO


 * Microsoft Windows 98 Standard Edition
 * Microsoft Windows 98 Second Edition

-



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.



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.



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

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



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



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 General Information About Windows 98 and Windows 98 Second Edition Hotfixes

Additional query words: fail fails failed

Keywords: kbhotfixserver kbqfe kbbug kbfix kbprogramming KB242161

-

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

© Microsoft Corporation. All rights reserved.