FIX: Incorrect F2128 Huge Segment Boundary Error

Last reviewed: September 16, 1997
Article ID: Q80101
5.00 5.10 | 5.00 5.10
MS-DOS    | OS/2
kbtool kbbuglist kbfixlist

The information in this article applies to:

  • Microsoft FORTRAN for MS-DOS and OS/2, versions 5.0, 5.1

SYMPTOMS

An attempt to compile an application in the OS/2 operating system fails and the compiler generates a protection violation. An attempt to compile the application in the MS-DOS operating system fails and the second pass of the compiler generates the following message:

   error F2128: ~k.~~~ : huge array cannot be aligned to segment boundary

The "~" and "~~~" characters represent symbol characters high in the ASCII table.

CAUSE

The application contains a complicated combination of DATA statements, EQUIVALENCE statements, I/O statements, or array declarations.

RESOLUTION

Many minor code changes eliminate this error. In the code example, reducing the size of the I array below 131,072 bytes or removing the DATA statement, EQUIVALENCE statement, or an executable statement eliminates the error.

STATUS

Microsoft has confirmed this to be a problem in FORTRAN versions 5.0 and 5.1 for MS-DOS and OS/2. This problem was corrected in FORTRAN PowerStation, version 1.0.

MORE INFORMATION

Sample Code

C Compile options needed: None

      CHARACTER*12 NAME1
      INTEGER I(32769)
      INTEGER J

      EQUIVALENCE (I, J)
      DATA NAME1 /'OFFSET.DAT'/

1 FORMAT()
      WRITE (*, 1)
      WRITE (*, 1)
      OPEN (1, FILE = NAME1, ERR = 9999)
      READ (1, *, END = 9999, ERR = 9999)
      OPEN (1, FILE = NAME1, ERR = 9999)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
      WRITE (*, 1)
9999 END


Additional reference words: 5.00 5.10 buglist5.00 buglist5.10 fixlist1.00
KBCategory: kbtool kbbuglist kbfixlist
KBSubcategory: FLIss
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 16, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.