Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Difference between revisions of "Microsoft KB Archive/106633"

From BetaArchive Wiki
(importing KB archive)
m (Text replacement - """ to """)
Line 59: Line 59:
== CAUSE ==
== CAUSE ==
Subroutine "MonitorWarning" declares a local array S as:
Subroutine "MonitorWarning" declares a local array S as:
<pre class="codesample">  CHARACTER*60 S(6)
<pre class="codesample">  CHARACTER*60 S(6)

Latest revision as of 09:22, 20 July 2020

Knowledge Base

PSS ID Number: 106633

Article Last Modified on 11/6/1999

The information in this article applies to:

  • Microsoft FORTRAN PowerStation for MS-DOS 1.0

This article was previously published under Q106633


Compiling GRDEMO.FOR with extended error handling ($DEBUG or /4Yb) generates the following error:

GRDEMO.FOR(449) : error F2536: S : subscript 7 out of range

The default directory for the GRDEMO program is:



Subroutine "MonitorWarning" declares a local array S as:

   CHARACTER*60 S(6)

However, the corresponding DATA statement initializes seven elements.

There is also an error in the main program where variable iModesCur is set to 0 (zero) and then used to access an array.


On line 247, change

   iModesCur = 0

to the following:

   iModesCur = 1

On line 439, change

   CHARACTER*60 s(6)

to the following:

   CHARACTER*60 s(7)


Microsoft has confirmed this to be a problem in FORTRAN PowerStation version 1.0 and 1.0a for MS-DOS.

This example does not exist in FORTRAN PowerStation 32.

Additional query words: 1.00 1.00a nofpsnt

Keywords: KB106633
Technology: kbAudDeveloper kbFORTRANPower100DOS kbFortranSearch kbZNotKeyword3