Select the product you need help with
Memory usage is more when you use a custom implementation of the ILockBytes interface to perform file operations in Windows XP ProfessionalArticle ID: 897661 On This PageSYMPTOMS To open files so that you can perform file operations, you
use a custom implementation of the ILockBytes interface in a program that runs in Microsoft Windows XP
Professional. After you do this, memory usage is more for files that are opened
in read-only mode than for the files that are opened in read-and-write mode.
Additionally, you may be able to open more files in read-and-write mode than in
read-only mode. Note If the STGM_NOSNAPSHOT flag is used in read-only mode, memory usage may be the same for both read-only mode operations and read-and-write mode operations. CAUSEThis problem occurs because a temporary scratch file is
created to save modifications that are made to the file. This temporary file is
mapped to memory until changes are saved in the original file. RESOLUTIONHotfix informationA supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix. Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: http://support.microsoft.com/contactus/?ws=support Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.
(http://support.microsoft.com/contactus/?ws=support)
PrerequisitesThere are no prerequisites.Restart requirementYou do not have to restart the computer after you apply this hotfix.Hotfix replacement informationThis hotfix does not replace any other hotfixes.File informationThe English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.Windows XP Professional, x86-based versionsCollapse this table
Windows XP Professional with Service Pack 1, Itanium-based versionsCollapse this table
STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section. MORE INFORMATIONThe custom ILockBytes interface turns off memory mapping of the original file and of
the snapshot file. But the scratch file is always mapped to memory unless there
is insufficient memory. You cannot turn off this option except by using the
STGM_NOSCRATCH flag. This flag puts the temporary changes in the free space of
the snapshot file and does not create a scratch file. When you use the STGM_READ flag, changes are not committed to the file. The scratch changes are thrown away when a file operation is finished. For more information about the ILockBytes interface, visit the following Microsoft Web site: http://msdn2.microsoft.com/en-us/library/aa379238.aspx For more information about the STGM flags, visit the following
Microsoft Web site:
(http://msdn2.microsoft.com/en-us/library/aa379238.aspx)
http://msdn2.microsoft.com/en-us/library/aa380337.aspx For
more information, click the following article number to view the article in the
Microsoft Knowledge Base:
(http://msdn2.microsoft.com/en-us/library/aa380337.aspx)
824684
(http://support.microsoft.com/kb/824684/
)
Description of the standard terminology that is used to describe Microsoft software updates
PropertiesArticle ID: 897661 - Last Review: October 9, 2011 - Revision: 3.0
|



Back to the top








