Answer the question
In order to leave comments, you need to log in
How to delete an array?
How to remove a multidimensional array so that it does not take up RAM?
Answer the question
In order to leave comments, you need to log in
This should be done by the garbage collector.
And to help him, you can do this:array = null;
Show your code. Most likely the algorithm is not correct. If, nevertheless, without creating an array, you can’t go anywhere and if you don’t need a guarantee of the safety of this data, then use weak reference. GC will crash them immediately at the first start.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question