I'm trying to use the CreateThread call in Fortran (Visual Fortran Composer XE 2011).
I supply a procedure name and a parameter to be used:-
THandle = CREATETHREAD (0, 0 ,sched_ServerThread ,IntegerParameter ,0 ,ThreadID)
Once the thread has started, the "sched_serverThread" subroutine is executed
In this subroutine, the supplied parameter (SystemNum defined as Integer*4) has an"undefined address", thus causing a few poblems in the subsequent code.
I presume I am doing something obviously incorrect?