TreeNode.treeNodeRelease Method

Releases the tree node explicitly.

Syntax

public void treeNodeRelease()

Run On

Called

Remarks

Usually you do not have to explicitly unload objects, because the garbage collector will do it automatically. However, because tree nodes are ordinarily linked to the AOT, they are not garbage-collected.

If you run this method on many tree nodes in the same execution, it can be demanding on resources. You should unload the tree nodes as you go along to give the garbage collector a chance to remove them.

Make sure to remove all references to the tree node and its subnodes before you call this method.

Use the TreeNode.TreeNodeType().isConsumingMemory method to determine if you need to call this method.

See Also

Reference

TreeNode Class