ISysSettings.CriticalLock

Syntax

CriticalLock: Variant;

Description

The CriticalLock property locks instance of the current object that is used to edit the settings file.

Comments

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. Unlocking is executed after deleting the object returned by the CriticalLock property.

Example

The example of use is given in description of the Root property.

See also:

ISysSettings