BUG: Compiler Error with the /Ss Switch in the Environment

Last reviewed: July 7, 1995
Article ID: Q83979
The information in this article applies to:
  • Microsoft FORTRAN for MS-DOS, version 5.1
  • Microsoft FORTRAN for OS/2, version 5.1

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


Additional reference words: 5.10
KBCategory: kbtool kberrmsg kbprb kbbuglist
KBSubcategory: FLIss


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 7, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.