Article ID: 241245 - Last Review: May 13, 2003 - Revision: 2.0

PRB: "Error 7 - Out of Memory" Error Message From Visual Basic Application Using FM20.DLL

This article was previously published under Q241245
Expand all | Collapse all

SYMPTOMS

A Visual Basic application is deployed on a target machine. When attempting to run the application on a target machine that does not have Microsoft Office 97 or later installed, the following error is generated:
Error 7 - Out of Memory
No loss of memory is monitored, and the system appears stable. The application executes properly if Microsoft Office 97 is installed on the target machine.

CAUSE

The problem is that FM20.DLL file is used by the project. FM20.DLL file is not a redistributable component and is intended for VBA use only. FM20.DLL is known to have many problems when used with Visual Basic and other developer products. Its use is neither recommended nor supported in any Visual Studio product.

RESOLUTION

The best resolution is to remove FM20.DLL from the project.

An alternative is to deploy the application only to machines with Microsoft Office 97 or later installed. To do this, remove the reference to FM20.DLL from the PDW or Setup Wizard file list. This prevents the install wizard from installing it. Note in your product documentation that installing the appropriate version of Microsoft Office on the target machine is a pre-requisite to installing your application.

STATUS

This behavior is by design.

REFERENCES

For additional information about using FM20.DLL, please click the article number below to view the article in the Microsoft Knowledge Base:
224305  (http://support.microsoft.com/kb/224305/EN-US/ ) INFO: Usage and Redistribution of FM20.DLL
To see what components are redistributable, read the "Redist.TXT" file that ships with Visual Basic. This file is installed to your hard drive or it can be found in the "\Common\Redist\" folder on the Visual Basic 6.0 CD-ROM or in the "\vb\" folder of the Visual Basic 5.0 CD-ROM.

APPLIES TO
  • Microsoft Visual Basic 5.0 Learning Edition
  • Microsoft Visual Basic 6.0 Learning Edition
  • Microsoft Visual Basic 5.0 Professional Edition
  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic 5.0 Enterprise Edition
  • Microsoft Visual Basic 6.0 Enterprise Edition
Keywords: 
kbappsetup kbprb kbwizard kbdeployment KB241245
 

Article Translations