I may be being stupid here but I am having a bit of trouble getting my head around the memory used by class instances.
If I have a Class called testClass which has in it a number of declared items, maybe a few Strings and so Maps and also some code.
When I use testClass.Initialize I assume some memory is used. If I do this 1000 times more and more memory is used.
How does that memory get released, I cannot see a way of closing an instance of a Class.
If I have a Class called testClass which has in it a number of declared items, maybe a few Strings and so Maps and also some code.
When I use testClass.Initialize I assume some memory is used. If I do this 1000 times more and more memory is used.
How does that memory get released, I cannot see a way of closing an instance of a Class.