You are currently offline, waiting for your internet to reconnect

The StgCreateDocFile() Function Causes an "STG_E_FILEALREADYEXISTS" Error in Windows 2000

This article was previously published under Q322934
This article has been archived. It is offered "as is" and will no longer be updated.
After a program makes many calls to the StgCreateDocFile function to create compound storage objects, an "STG_E_FILEALREADYEXISTS (0x80030050)" error is returned and a memory leak occurs in the process.
A code flaw causes a 512-byte memory leak that occurs when a memory-mapping operation does not succeed.

Service Pack Information

To resolve this problem, obtain the latest service pack for Microsoft Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
260910 How to Obtain the Latest Windows 2000 Service Pack

Hotfix Information

A 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.

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, submit a request to 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: 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. The English version of this fix should have the following file attributes or later:
   Date         Time   Version      Size     File name   ----------------------------------------------------   24-May-2002  11:37  5.0.2195.58  940,304  Ole32.dll   24-May-2002  11:37  5.0.2195.58  429,328  Rpcrt4.dll   24-May-2002  11:37  5.0.2195.50  184,592  Rpcss.dll				

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Microsoft Windows 2000 Service Pack 4.
For additional information about how to obtain a hotfix for Windows 2000 Datacenter Server, click the article number below to view the article in the Microsoft Knowledge Base:
265173 The Datacenter Program and Windows 2000 Datacenter Server Product
For additional information about how to install multiple hotfixes with only one reboot, click the article number below to view the article in the Microsoft Knowledge Base:
296861 Use QChain.exe to Install Multiple Hotfixes with One Reboot

Article ID: 322934 - Last Review: 10/24/2013 11:58:15 - Revision: 4.7

Microsoft Windows 2000 Server, Microsoft Windows 2000 Advanced Server, Microsoft Windows 2000 Professional Edition

  • kbnosurvey kbarchive kbautohotfix kbhotfixserver kbqfe kbiiscom kbwin2ksp4fix kbbug kbfix kbwin2000presp4fix KB322934