FIX: "R6001: Null Pointer Assignment" From Loop OptimizationLast reviewed: September 11, 1997Article ID: Q63381 |
|
5.00 | 5.00
MS-DOS | OS/2
kbtool kbfixlist kbbuglist kberrmsg
The information in this article applies to:
SYMPTOMSAn attempt to run an application fails and the following message appears on the screen:
R6001: null pointer assignment CAUSEThe application was compiled by FORTRAN version 5.0 with loop optimizations enabled.
RESOLUTIONTo work around this problem, perform one of the following steps:
STATUSMicrosoft has confirmed this to be a problem in FORTRAN version 5.0 for MS-DOS and OS/2. This problem was corrected in FORTRAN version 5.1 for MS-DOS and OS/2.
MORE INFORMATIONThe following code example demonstrates this problem.
Sample CodeC Compile options needed: None
CHARACTER*1 STR1(10), STR2(10)
DATA STR1 / 'T', '.', 'B', '.', 'C', '.', 4*' ' /
CALL COPYSTR(STR1, 1, 10, STR2, 1)
END
SUBROUTINE COPYSTR(IARRAY, IBEG, IEND, JARRAY, JBEG)
CHARACTER*1 IARRAY(10), JARRAY(10)
JPT = JBEG
DO 100 IGET = IBEG, IEND
JARRAY(JPT) = IARRAY(IGET)
JPT = JPT + 1
100 CONTINUE
RETURN
END
|
Additional reference words: 5.00 buglist5.00 fixlist5.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |