SysSecTree.dispose Method [AX 2012]
Removes any references to objects that may have been leaked by the runtime.
The method makes sure that the tree will release references to objects that may be potentially leaked by the form runtime and its interaction with garbage collection. Theoretically, all objects that are referenced are managed X++ objects and should be cleaned-up by garbage collection. In practice this does not really work because of circular references and this method explicitly releases them.
After calling this method some methods on the class will no longer work. This should not affect any code, as the SysSecTree.dispose method is to be called as part of closing the form.
Community Additions
ADD
Show: