BUG: CVW 3.x and FORTRAN DLLs: Stack Trace Hangs Machine (85164)



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 Q85164

SYMPTOMS

Using Microsoft Codeview for Windows versions 3.x under Windows 3.1 to debug Microsoft FORTRAN 5.1 Windows DLLs that have been called by C applications can hang the machine if the CALL menu is selected or the stack trace command, K, is entered in the command window.

CAUSE

There is a problem in the CodeView for Windows FORTRAN expression evaluator that is incorrectly accessing the stack.

RESOLUTION

If a stack trace is desired, enter the command

use c

in the command window. This will cause CVW to use the C expression evaluator. To return using the FORTRAN expression evaluator type

use fortran

in the command window.

STATUS

Microsoft has confirmed this to be a problem in FORTRAN version 5.1.

This is not an issue in FORTRAN PowerStation.

MORE INFORMATION

To duplicate this problem, build the MULMIX_D project that is provided in the FORTRAN 5.1 samples subdirectory. There is a makefile that is provided called MULMIX_D.MAK. The makefile assumes that C 6.0 will be used. Using C/C++ 7.0 to build the application and DLL avoids the problem because there is no FORTRAN expression evaluator for the 4.0 versions of CV or CVW which are provided with C/C++ 7.0.

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