The InitRoutine property is used to specify the entrypoint (i.e., name) of a parameterless function, supplied in the code of the implementation, that will perform application-specific initialization in a process or schedulable process before control is handed from the "main" program to the function(s) implementing the process itself. The UniCon compiler will generate the code to call this routine at the appropriate time before control is handed to the function(s) implementing the process.
If this property is present, a parameterless function call will be generated in the implementation. If no corresponding function definition is supplied, the system construction will fail.
There is no default value for the InitRoutine property.
Subsequent specifications of the InitRoutine property in a single property list replace earlier specifications (i.e., the last specification is the one that the UniCon compiler uses).
If an InitRoutine property is specified, but none of the files implementing the component are source files, then the check is abandoned. In this case, the UniCon compiler will attempt to build the executable for the process, but no guarantees are made about the viability of such an executable at run-time.
USES Client INTERFACE RT_Client PRIORITY (10) ENTRYPOINT (client) INITROUTINE (initialize_client) END Client
Author:
Last Modified: May 12, 1996