| || |
Cleaning up memory
This is regarding usage of Classes.NewArray for ODT
The Classes.NewArray method creates a new ArrayObject object.
What is the impact on memory usage if this not cleaned up while exiting the function ?
what is the way to clean up at exit ?
Re: Cleaning up memory
If you assign Classes.NewArray's result to a local variable, it will be destroyed as soon as the script leaves its scope (for example, exits the current function). If you assign it to a global variable or a property of an object, it will be kept until the script execution is completed.