FIX: Z Format Hangs Machine with String > 130 BytesLast reviewed: September 16, 1997Article ID: Q84576 |
5.10 | 5.10
MS-DOS | OS/2
kbtool kbfixlist kbbuglist
The information in this article applies to:
SYMPTOMSPrograms that contain a string or substring larger than 130 bytes in size that is output with a Z edit descriptor may hang the machine or cause a protection violation under OS/2 or Windows.
RESOLUTIONTo use the Z edit descriptor with strings larger than 130 bytes in size, use an implied DO-loop to output a single byte of the larger string at a time.
STATUSMicrosoft has confirmed this to be a problem in FORTRAN version 5.1. This problem was corrected in FORTRAN PowerStation, version 1.0.
MORE INFORMATION
Sample Code #1The following code reproduces the problem:
character*131 c c = 'this is a test' write(*, '(1x,z)') c end Sample Code #2The following code will not cause the problem:
character*131 c c = 'this is a test' write( *,'(1x,200z)') ( c(i:i),i=1,131 ) end |
Additional reference words: 5.10 halt buglist5.10 fixlist1.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |