FIX: Error in /FILE$INFO/ in FLIB.FI and FLIB.FDLast reviewed: September 16, 1997Article ID: Q106527 |
1.00
MS-DOS
kbtool kbfixlist kbbuglist
The information in this article applies to:
SYMPTOMSData corruption may occur after a call to GETFILEINFOQQ due to the NAME field of /FILE$INFO/ in FLIB.FI and FLIB.FD being declared character*13 instead of character*255. In some cases the following error:
run-time error F6316: array already allocatedmay be produced.
CAUSEPage 313 of the FORTRAN PowerStation "Language Guide" shows the structure of /FILE$INFO/, which is used to return information about the file that matches the search criteria. The NAME (of file) field is declared as character*255. However, the NAME field is declared only as character*13 in FLIB.FD and FLIB.FI. Therefore, using /FILE$INFO/ from FLIB.FD with GETFILEINFOQQ will cause data corruption because the character*13 field overflows.
RESOLUTIONIn F32\INCLUDE\FLIB.FI and F32\INCLUDE\FLIB.FD change
CHARACTER*13 NAME ! Filenameto the following:
CHARACTER*255 NAME ! Filename STATUSMicrosoft has confirmed this to be a problem in FORTRAN PowerStation version 1.0. This problem was corrected in FORTRAN PowerStation version 1.0a.
MORE INFORMATIONTo demonstrate the problem (before making the above correction):
|
Additional reference words: 1.00 kbdocerr
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |