Out of memory error message using the Rich Textbox control (236286)



The information in this article applies to:

  • Microsoft Visual Basic Professional Edition for Windows 4.0
  • Microsoft Visual Basic Professional Edition for Windows 5.0
  • Microsoft Visual Basic Professional Edition for Windows 6.0
  • Microsoft Visual Basic Enterprise Edition for Windows 4.0
  • Microsoft Visual Basic Enterprise Edition for Windows 5.0
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0

This article was previously published under Q236286

SYMPTOMS

When running an application that uses the Microsoft Rich Textbox control, an Out of Memory error occurs. Another possible error is:
System Error &H80004005 (-2147467259). Unexpected Error

CAUSE

A version of the Riched32.dll file that is not redistributable is installed on the computer. Riched32.dll may not be distributed because it requires files that are only installed by Microsoft Exchange. Because the Riched32.dll file is a shared component, this problem may occur when you use an application that is installed correctly.

RESOLUTION

Microsoft has created an application that installs the correct version of the Riched32.dll file on the target system.

The following file is available for download from the Microsoft Download Center:

DownloadDownload the Richedfx.exe package now.

Release Date: August 25, 1999

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file. Download the richedfx.exe file and run the executable on the target system. The program verifies that the problem exists on the target system and allows you to confirm whether you want to replace the Riched32.dll file with the correct version.

Note This application requires that the Visual Basic 6.0 run-time file Msvbvm60.dll is installed on the target computer. Any Visual Basic application installs this file. The msvbvm60.dll file can also be downloaded from the following Microsoft Knowledge Base article:

290887 VBRun60sp6.exe installs Visual Basic 6.0 SP6 run-time files

STATUS

This problem occurs when an application distributes the wrong version of the Riched32.dll file. Applications whose distributions are created using Microsoft tools such as the Setup Wizard or the Package and Deployment Wizard (PDW) do not cause this problem. Vendors of Visual Basic applications that choose to use third-party distribution tools should distribute a copy of the Riched32.dll file from the \VB98\Wizards\PDWizard\Redist directory.

Note Set up programs should not replace the version of Riched32.dll on systems running Microsoft Windows NT 4.0 or Windows 2000. See the Microsoft Knowledge Base article in the REFERENCES section of this article for more information.

REFERENCES

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

197580 Distribution issues with Riched32.dll


Modification Type:MinorLast Reviewed:8/5/2004
Keywords:kbdownload kbDeployment kberrmsg kbfile kbprb KB236286 kbAudDeveloper