KCMS CMM Developer's Guide

Initialization and Cleanup

The KcsLoadable class loads a runtime derivative's binaries when a create()() method is used. It generates the shared object's configuration file keywords based on class, derivative, and version identifiers. It retrieves the module name and loads the library. See "Creating OWconfig File Entries" for further information.

The KcsLoadable class then locates the KcsDLOpen()XXXXCount() variable. If KcsDLOpen()XXXXCount = 0, it locates and loads the KcsInit()XXXX()() entry point and, if available, calls it. Then the KcsCreate()XXXX()() entry point is located and loaded. If everything is successful, the KcsCreate()XXXX()()entry point is called.

When the last of a specific derivative type is deallocated and the KcsCleanup()XXXX()() entry point is available, it is located, loaded, and called.