BUG: Compiler Error with the /Ss Switch in the Environment (83979)



The information in this article applies to:

  • Microsoft FORTRAN Compiler for MS-DOS 5.1
  • Microsoft FORTRAN compiler for OS/2 5.1

This article was previously published under Q83979

SYMPTOMS

The /Ss option for the FL environment variable has a limited length of approximatly 16 chars. Otherwise, one of the following errors will occur during compilation:

  1. Run-time error R6001, null pointer assignment -or-

  2. Out of Memory -or-

  3. The compiler may also crash without giving any error messages.

RESOLUTION

Shorten the command line for the /Ss parameter.

STATUS

Microsoft has confirmed this to be a problem in FORTRAN version 5.1 for MS-DOS and OS/2.

NOTE: The /Ss option is not supported by FORTRAN PowerStation.

MORE INFORMATION

The following code can be used to demonstrate the problem.

Sample Code

The following will cause the error,
     SET FL=/Ss"01234567890123456789"
				
Using the /Ss switch in the command line will work correctly,
     FL /c /Ss"01234567890123456789" test.for
				

Modification Type:MajorLast Reviewed:10/23/2003
Keywords:KB83979