CriticalLock: Object;
CriticalLock: Object;
The CriticalLock property locks instance of the current object that is used to edit the settings file.
The settings file supports multistream work, that is, several users can work with the file. To prevent simultaneous saving, it is required to lock the file before by addressing the CriticalLock property. If other users try to save changes to the locked file, an exception is thrown. To avoid this situation, they need to wait until the file is unlocked, refresh the contents of the file on their side and save their changes. Locking is disabled on deleting the object returned by the CriticalLock property.
The example of use is given in description of the Root property.
See also: