The information in this article applies to:
SYMPTOMSThe following error may not be produced when a divide by zero exception involving an intrinsic function occurs at run time: 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:
CAUSEThis 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. RESOLUTIONExplicitly check denominators in arguments to the SIN, COS, TAN, ABS, EXP, or SQRT intrinsic function for zero values before performing a divide operation. STATUSMicrosoft 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. MORE INFORMATION
The intrinsic function ABS generates the appropriate run-time error
regardless of optimization.
The following sample code illustrates the symptoms described above: Sample Code
Additional query words: 1.00 4.00 lock halt gp-fault
Keywords : kberrmsg kbLangFortran |
Last Reviewed: November 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |