PRB: Run-Time Error 1232 From Incorrect BLOCK DATA Placement
PSS ID Number: Q10627
Article last modified on 02-09-1993

3.20

MS-DOS


----------------------------------------------------------------------
The information in this article applies to:

 - Microsoft FORTRAN for MS-DOS, version 3.2
----------------------------------------------------------------------

Summary:

SYMPTOMS
   An attempt to run an application fails and the run-time library
   generates a message like the following:

      ? Error: Data format error in file USER
        Error Code 1232, Status  000E
      PC = FC16: 2300; SS = 25E0, FP = 5245, SP = F806

CAUSE
   The application contains a BLOCK DATA subprogram that follows the
   main program in a source code file.

RESOLUTION
   To work around this problem, perform one of the following:

    - Modify the source code to place the BLOCK DATA subprogram before
      the main program in the source file.

    - Modify the source code to place the BLOCK DATA subprogram into a
      separate source file. Compile this file separately and link it
      with the remainder of the compiled code.

STATUS
   Microsoft has confirmed this to be a problem in FORTRAN version 3.2
   for MS-DOS. This problem was corrected in FORTRAN version 3.3 for
   MS-DOS.

More information:

The following program demonstrates this problem.

C Compile options needed: None

      PROGRAM TSTBLK
      COMMON /TST/ I
      WRITE (*, 1) I
1     FORMAT (' ', I10)
      STOP
      END

      BLOCK DATA
      COMMON /TST/ I
      DATA I /5/
      END

Additional reference words: 3.20

=============================================================================

Copyright Microsoft Corporation 1993.
