Microsoft KB Archive/131899

= FIX: Access Violation with Large NAMELIST =

Article ID: 131899

Article Last Modified on 10/17/2003

-

APPLIES TO


 * Microsoft FORTRAN PowerStation 1.0 Standard Edition
 * Microsoft Fortran PowerStation 1.0a for MS-DOS
 * Microsoft FORTRAN PowerStation 32

-



This article was previously published under Q131899



SYMPTOMS
An application that uses a large NAMELIST may cause an access violation when attempting to write the NAMELIST. This problem is seen most often with NAMELISTs around 2K in size, but the problem has been known to occur with a NAMELIST as small as 100 bytes.



RESOLUTION
To work around this problem, reduce the size of the NAMELIST. This can be accomplished by either splitting the NAMELIST into multiple smaller NAMELISTs or by grouping variables of similar type together in an array.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in FORTRAN PowerStation 32, version 4.0.



Sample Code to Demonstrate Problem
C C Compile options needed: none C C This program should cause an access violation

PROGRAM NAMELISTTest

CHARACTER*20 TheArray(100) INTEGER*4 Index NAMELIST /TheNameList/ TheArray

C Fill in the array DO Index = 1,100 TheArray(Index) = "Testing NAMELIST" END DO

C Display the name list WRITE (*,TheNameList)

END

