Sign in Join
FPDoc Onlineexperiment

TTreeNodes.ConsistencyCheck procedure

Member of TTreeNodespublicIn unit ComCtrls

Makes sure all references for nodes in the container are consistent.

Declaration

pascal
procedure ConsistencyCheck; virtual

Description

ConsistencyCheck is a method used to ensure that references between nodes in the container are valid and consistent. ConsistencyCheck raises catchable debugger exceptions when error conditions are detected in the class instance, including:

  • TopLvlItems is empty.
  • TopLvlCount does not match the number of top-level items.
  • Invalid sibling nodes or node count.
  • Invalid child nodes or node count.
  • Invalid index value for a node.
  • A node is not found in the node cache.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.