I have a long running method. In it I am just adding text to a global variable.
After the end of the loop in the method I set the global variable to an empty string.
For ex: globals.var1 = “”
Will this release the memory occupied by the variable?
Do I need use globals.var1 = null ?
Any help would be appreciated.
Thanks!