The information in this article applies to:
SYMPTOMSAn attempt to link an application fails and Microsoft LINK generates the following message:
CAUSEAccording 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. RESOLUTIONThe 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:
MORE INFORMATIONThe L1064: "Out of memory" error was introduces in LINK version 5.03 which was first provided with the IMSL libraries for Microsoft FORTRAN version 4.1 and was also provided with FORTRAN version 5.0. Explanation of the SWAPPATH Setting in CONFIG.SYSThe MEMMAN setting in CONFIG.SYS must enable swapping for the SWAPPATH setting to be acknowledged at all (typically, the command is "MEMMAN=SWAP" or "MEMMAN=SWAP,MOVE").The default SWAPPATH setting when OS/2 is first installed is usually as follows: SWAPPATH=C:\OS2\SYSTEM 512The file specification indicates the drive and directory where the swap file is allocated. If the CONFIG.SYS file does not contain a SWAPPATH variable, the swapper allocates space in the root directory on the boot drive. The numeric parameter indicates the amount of free space that must remain on this drive when the swap file grows to its maximum size. (By itself, this number does not indicate the maximum size of the swap file.) Given the SWAPPATH statement above, the maximum size of the swap file is calculated as follows: (free space on drive C) - 512K = (maximum swap file size)Therefore, increasing the value in the SWAPPATH statement DECREASES the amount of memory available for the swap file. You can decrease the value in the SWAPPATH setting and the system allows values as low as 0 (zero). However, because OS/2 shares processor time between processes and may need to write to the disk that contains the swap file, decreasing the SWAPPATH value below 512K (the system default) is not recommended. Reduce the value only if the SWAPPATH statement specifies a value greater than 512K (the valid range is 0 to 32,767). If this is the case, use a text editor to edit CONFIG.SYS and set the SWAPPATH value to Shutdown and reboot the machine. If the problem persists, you must delete files from the hard disk that contains the swap file. Additional query words: 5.03 5.05 5.10 5.13 5.30 5.31.009 5.50
Keywords : kb16bitonly |
Last Reviewed: December 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |