Microsoft KB Archive/241245

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

Article ID: 241245

Article Last Modified on 5/13/2003

-

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

-



This article was previously published under Q241245



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.

