Article number: KB000024
Related blocks:
Code of a compilation unit (assembly, form, or unit) is created within the global namespace indicated in the development environment as Global Scope. Global namespace supports describing all types that can be described in a specific namespace.
If a namespace (specific or global) describes variables, on variables initialization their values are saved to the cache of the current repository connection. These variables can be used to exchange information between various assemblies, forms, or units linked by references. If all the variables store only simple type values, after the code execution is completed the variables are cleared by garbage collector. When custom class objects or references to open Platform objects are stored in variables, the variables are not nulled after the code is completed. This may result in memory leakage. To null the variables described in namespaces, the user needs to explicitly cast them to Null value or use the Dispose statement.
See also: