PSS ID Number: 108409
Article Last Modified on 11/2/1999
The information in this article applies to:
- Microsoft Fortran Powerstation 32 for Windows NT 1.0
This article was previously published under Q108409
SYMPTOMS
The following error may not be produced when a divide by zero exception
involving an intrinsic function occurs at run time:
run-time error M6103: MATH
floating-point error: divide by 0
If such a program is compiled with the -Ox option, a Dr. Watson
"Application Error" message box specifying "Exception: access violation"
may be generated. Otherwise, the application may hang.
The following occurs using Fortran PowerStation 32, version 4.0:
- Using the -Ox compile option causes an Application Error at run-time.
- Using no compile options, the following appropriate run-time error is
generated:
run-time error M6103: MATH
- floating-point error: divide by zero
CAUSE
This unexpected behavior occurs when the divide by zero exception occurs in
the argument list of the SIN, COS, or SQRT intrinsic functions. ABS, EXP,
and TAN also produce incorrect behavior that is slightly different from the
behavior mentioned above.
RESOLUTION
Explicitly check denominators in arguments to the SIN, COS, TAN, ABS, EXP,
or SQRT intrinsic function for zero values before performing a divide
operation.
STATUS
Microsoft has confirmed this to be a problem in the 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.
Additional query words: 1.00 4.00 lock halt gp-fault
Keywords: kberrmsg kbLangFortran KB108409
Technology: kbAudDeveloper kbFORTRANPower32100NT kbFortranSearch kbZNotKeyword2