Microsoft KB Archive/112058

From BetaArchive Wiki
Knowledge Base


Article ID: 112058

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 Q112058

SYMPTOMS

Attempting to set a stack size greater than 32K in the Visual Workbench (VWB) may produce a Tools Options dialog box with the message:

Numerical value is invalid, it must be in the range 0 <= number <= 32768

In other instances, no warning message will be produced, but the stack size will modulus itself with 64K resulting in a stack size between 0 and 32768 bytes.

With FORTRAN PowerStation 32, the following application error is generated:

Linker options: f32vwb.exe - Application Error

The instruction at 0x0ff5710b referenced memory at "0x6874206".
The memory could not be "read".

CAUSE

The 32K stack size limitation was carried over from the 16-bit Microsoft Visual C++ product. FORTRAN PowerStation allows stack sizes much larger than 32K.

RESOLUTION

Manually edit the .FMK file produced by VWB to add the -stack: option to the appropriate L32FLAGS options string. When opening the project from VWB, be sure to select the Use As An External Makefile check box.

Another option is to link from the command line.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

To demonstrate the problem, follow these two steps:

  1. From VWB choose Project from the Options menu and select Linker.
  2. Type 100000 in the Stack Size Maximum field.



Additional query words: 1.00 1.00a

Keywords: kbbug kbide KB112058