The information in this article applies to:
SYMPTOMSThe following error is received during linking:
CAUSEThe LINK error L2028 is caused when the data segment required by the application exceeds 64K. This can be calculated by adding the HEAPSIZE and STACKSIZE portions of the .DEF file, plus the global data and static data. These two numbers of the .DEF file plus the size of the global and static data need to be under 65536 bytes. The global data refers to global variables in an application, not the global heap. RESOLUTION
The solution is to reduce the amount of the HEAPSIZE, STACKSIZE,
global data, or static data. If the application utilizes large amounts
of global data, some of this data should be moved into the memory
covered by Windows [e.g. utilizing GlobalAlloc()]. If the data
consists of constants, such as string tables, these can be moved into
Windows resources using the RC compiler.
Additional query words: 3.00 3.10
Keywords : kb16bitonly |
Last Reviewed: November 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |