Use
Don't use direct method in MaxGUI, sometimes they're not safe because there's more behind the scene
FreeTreeView(node_tree:tgadget)
Don't use direct method in MaxGUI, sometimes they're not safe because there's more behind the scene