Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== INSTALL Call ====== A special call is provided to enable an MFS to perform any special processing that might be required to initialize itself. This is the INSTALL call. The first time an MFS is called for the current session, the OpenInsight system calls the MFS with an INSTALL code. The MFS can perform any action that it requires in order to run properly, including initializing files, establishing buffers or caches, checking security, etc. Once this logic has been executed, the MFS should execute a [[return|RETURN]] with STATUS set to true. The MFS should not attempt to call subsequent MFSs or the BFS directly, since the BFS argument will not contain the names of any of these. Unlike most MFS calls, INSTALL is not called by OpenInsight in anticipation of eventually passing the call to the BFS. The INSTALL call is a direct call to that MFS only. If a call is attempted to the next MFS, a load error will occur. All MFSs should thus execute the following logic upon encountering an MFS call: <code> INSTALL: (MFS-specific initialization logic here) STATUS = 1 RETURN </code> Once the MFS has successfully returned from an INSTALL call, INSTALL will not be called again. The name of the MFS will be stored in a special system variable, and will remain there for the duration of the session. There is no effective way to de-install the MFS from the system. Once the MFS has been installed, the system will assume that the MFS will be available until the user logs out of OpenInsight. This is true even if all files for which the MFS is installed are detached. Because of this, an MFS must remain available at all times. The system occasionally generates direct calls to each MFS it believes is available. The most common of these is the FLUSH call. If the system makes such a call, and the MFS object code is not available, a load error will occur. In many cases the only recovery is to reset the system, to reattach the file containing the MFS object code. guides/programming/programmers_reference_manual/install_call.txt Last modified: 2024/06/19 20:20by 127.0.0.1