The information in this article applies to:
SYMPTOMSPrograms compiled with Microsoft FORTRAN versions 4.0, 4.01, 4.1, and 5.0 that concatenate substrings having a variable for a substring index, can give incorrect results or hang the machine when executed under MS-DOS, or result in a protection violation when executed under OS/2. CAUSEThe problem is usually observed when the concatenation occurs inside a function call, or inside OPEN or IF statements. RESOLUTIONTo avoid this problem, assign the concatenated expression to a temporary character variable and use the temporary variable in the program. STATUSMicrosoft has confirmed this to be a problem in FORTRAN versions 4.0, 4.01, 4.1, 5.0, and 5.1. This problem was corrected in FORTRAN PowerStation. MORE INFORMATIONThe following sample programs illustrate the problem: In an IF Statement
In a Function
Assigning the concatenated expression to a temporary character
variable and using the temporary variable in the IF statement or
function call will prevent the problem from occurring, as illustrated
by the following sample programs:
In an IF Statement
In a Function
Additional query words: 5.00
Keywords : |
Last Reviewed: November 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |