Share via


TreeNodeType.isConsumingMemory Method

Indicates whether instances of this node type are consuming memory that needs to be manually released.

Syntax

public boolean isConsumingMemory()

Run On

Called

Return Value

Type: boolean
true if tree nodes of this type are consumes memory; otherwise, false.

Remarks

After working with TreeNode instances of this type it is important to call the TreeNode.TreeNodeRelease method to release any consumed memory.

Failure to do this will result in out-of-memory exceptions.

Do not call the TreeNode.TreeNodeRelease method before all instances of TreeNode classes in the composition hierarchy has been garbage collected.

For example, do not call the TreeNode.TreeNodeRelease() method on MyClass, if you still have a TreeNode instance of MyClass.myMethod.

See Also

Reference

TreeNodeType Class