The information in this article applies to:
SYMPTOMSWhen you compile the multithread example MTTEST.FOR, the compiler generates the following error messages:
CAUSE
The sample program contains two errors.
RESOLUTIONThe CreateThread() and WaitForMultipleObjects() declarations are not needed and should be removed. Delete the line 12 from MTTEST.FOR:
CreateThread() expects a subprogram, not a location. Remove the syntax
"LOC()" from line 19 of MTTEST.FOR:
After the correction is made, the line will be as follows:
In addition to the actual errors, the program takes an unnecessarily long
time to run. The number of milliseconds it waits in the "task" routine
should be reduced from 10000 to 1000 or less. In MTTEST.FOR, change
-to-
STATUSMicrosoft has confirmed this to be a bug in the FORTRAN PowerStation 32 for Windows NT, version 1.0. 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
Keywords : kberrmsg kbFortranPS kbLangFortran |
Last Reviewed: November 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |