Loading...
 

CX_SYSTEM_OBJECT::ReloadSlotDefinitions

CX_SYSTEM_OBJECT::ReloadSlotDefinitions

185330

Description:

This class function reloads the slot definitions from the .ini file. After a new slot is added to the .ini (or .dic if included), the slot can be used directly after a ReloadSlotDefinition without rebooting the system. If the .ini is described with InstantView means, slots can be created dynamically in this way, which are still available after the system is rebooted.

The .ini file specified when starting the ClassiX system is always re-read. It is not possible to specify another .ini file. The existing slot definitions are completely replaced by the new slot definitions.

Warning: If the .ini redefines earlier slots when ReloadSlotDefinitions is called, or no longer contains definitions for earlier slots, an error message is issued and the slot definitions remain in their original state. This means that the system dictionary always remains in a consistent state for the caller, as a newly starting ClassiX cannot recognise whether a slot is missing or has been redefined, but on the other hand, newly starting ClassiX instances can start in an inconsistent state if the adjustment of the .ini file is not immediately undone.

Code example:
SystemObject Call(ReloadSlotDefinitions)

Stack
Stack Position Object type Brief description
Stack(In) Top
Stack(Out) Top
Function call: Call(ReloadSlotDefinitions)