PRB: Addressing L1064: "Out of Memory" Errors (45718)
The information in this article applies to:
- Microsoft LINK for MS-DOS 5.03
- Microsoft LINK for MS-DOS 5.05
- Microsoft LINK for MS-DOS 5.1
- Microsoft LINK for MS-DOS 5.13
- Microsoft LINK for MS-DOS 5.3
- Microsoft LINK for MS-DOS 5.31.009
- Microsoft LINK for MS-DOS 5.5
- Microsoft LINK for OS/2 5.03
- Microsoft LINK for OS/2 5.05
- Microsoft LINK for OS/2 5.1
- Microsoft LINK for OS/2 5.13
This article was previously published under Q45718 SYMPTOMS
An attempt to link an application fails and Microsoft LINK generates the
following message:
L1064: Out of memory
CAUSE
According to the "Microsoft FORTRAN, Microsoft CodeView and Utilities
User's Guide" for version 5.0 the causes of this error are as follows:
The linker was not able to allocate enough memory from the
operating system to link the program. On OS/2 try increasing the
swap space. Otherwise, reduce the size of the program in terms
of code, data, and symbols. On OS/2, consider splitting the
program into dynalink libraries.
RESOLUTION
The methods to work around this error depend on the operating system in
which LINK is running. In the MS-DOS operating system, the two methods to
address this situation are as follows:
- Remove any unnecessary memory-resident software or device
drivers that limit the amount of free memory.
- Reduce the size of the application as described above.
If you are using LINK version 5.3 or later in the MS-DOS or
Microsoft Windows operating systems, the seven methods to address
this situation are as follows:
- Delete unnecessary files to free space on your hard disk.
- Increase the size of the Windows swap file. To create the
largest possible swap file, use a disk defragmentation utility
to make the free space contiguous.
- Reduce the size of the code, data, or symbols.
- If the program is a segmented-executable file, place some of its
code into a dynamic-link library (DLL).
- Remove unnecessary terminate-and-stay-resident (TSR) software.
- Reconfigure the Expanded Memory Manager to provide more
conventional memory.
- Edit the CONFIG.SYS file to specify fewer buffers in the BUFFERS
statement or fewer drives in the LASTDRIVE statement.
In the OS/2 operating system, the easiest method to work around
this error is perform the following three steps to increase the
swap space:
- Free up RAM and swap space by closing other screen groups and
removing other processes from memory.
- Load the CONFIG.SYS file into an editor. Find the SWAPPATH
statement and determine the hard disk on which OS/2 stores the
swap file. Delete one or more files from this hard disk or
modify the SWAPPATH statement to point to a drive with more free
space.
- If the error persists, carefully read the explanation of the
SWAPPATH setting in the text below and possibly decrease the
swap value specified in the SWAPPATH setting.
Modification Type: | Major | Last Reviewed: | 10/23/2003 |
---|
Keywords: | kb16bitonly KB45718 |
---|
|