FIX: Protection Violation, Application Error, From COMMON NameLast reviewed: September 10, 1997Article ID: Q27558 |
4.10 5.00 5.10 | 5.10
OS/2 | MS-DOSkbprg kbfixlist kbbuglist kberrmsg kbcode The information in this article applies to:
SYMPTOMSAn attempt to run an application fails and the corresponding message below appears on the screen. In FORTRAN for OS/2, the following message appears:
A program caused a Protection Violation.If the application compiled as a QuickWin application, the following message appears:
Unexpected Application Error CAUSEThe name of a COMMON block in the application ends with the letters "code." The compiler confuses the code and data segments that have similar names. When the application writes to the COMMON block, the generated code writes into a code segment.
RESOLUTIONTo work around this problem, modify the source code to rename the COMMON block. The last four letters of the name cannot be "code."
STATUSMicrosoft has confirmed this to be a problem in FORTRAN versions 4.1, 5.0, and 5.1. This problem was corrected in FORTRAN PowerStation.
MORE INFORMATIONThe following code example demonstrates this problem.
Sample Code
COMMON /PCODE/ I I = 7 END |
Additional reference words: 4.10 5.00 5.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |