Microsoft KB Archive/106564

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 15:04, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


PSS ID Number: 106564

Article Last Modified on 3/24/2000



The information in this article applies to:

  • Microsoft FORTRAN PowerStation for MS-DOS 1.0



This article was previously published under Q106564

SYMPTOMS

The Locals and the Watch windows show error EE0044 instead of the values in an array declared with lower bounds other than 1.

RESOLUTION

If possible, EQUIVALENCE the array with lower bounds other than 1 with a same-sized array with lower bounds of 1. Then view the elements in the array with the lower bounds of 1.

STATUS

Microsoft has confirmed this to be a problem in FORTRAN PowerStation version 1.0 for MS-DOS. This problem has been resolved with FORTRAN PowerStation maintenance release version 1.0a for MS-DOS.

MORE INFORMATION

FORTRAN PowerStation version 1.0 can be differentiated from the maintenance release version 1.0a by invoking the linker. Typing link32 | more from \F32\BIN directory will show version 2.8 for FORTRAN PowerStation version 1.0, and it will show version 1.0f for the maintenance release version 1.0a.

Neither the Locals nor the Watch window can display the values in an array declared with lower bounds other than 1. For example a(10) and b(1:20) work but c(-1:5), d(0:34), and e(4:8) do not work.

Regardless of the actual declared lower bound, if it is not 1, then the debugger will attempt to display the array as if the lower bound were 0 (zero). For example, with A declared as A(2:4), the debugger will display five elements: A(0) to A(4).

To demonstrate the problems:

  1. Build the sample code with the project in debug mode.
  2. Step to the print statement. At this point all three elements of ARR are 100.3.
  3. In the Watch window, enter ARR and ARR(2).
  4. Click "+ARR = {...}" to display the full array. At this point the Watch window will show:

          -ARR
             (ARR)(0) = EE0044 Error: Type error.
             (ARR)(1) = EE0044 Error: Type error.
             (ARR)(2) = EE0044 Error: Type error.
             (ARR)(3) = EE0044 Error: Type error.
             (ARR)(4) = EE0044 Error: Type error.
           ARR(2) = EE0044 Error: Type error.
                            
  5. Open the Locals window. ARR will be displayed the same way.

Sample Code

C Project options needed: Debug mode

      real arr(2:4)
      arr = 100.3
      print*, arr(2)
      end
                


Additional query words: 1.00 buglist1.00 fixlist1.00a

Keywords: kbbug KB106564
Technology: kbAudDeveloper kbFORTRANPower100DOS kbFortranSearch kbZNotKeyword3