Can RAM be unloaded and over-written?
Can RAM be unloaded and over-written?
Basically I am making an .xml interpreter to load objects from an SD card onto a screen. This will eat RAM of course so I was wondering whether I can prevent a fragmented heap resulting in a memory overflow?
Re: Can RAM be unloaded and over-written?
My experience about that, from a users view:
As soon as you do not need an object any more, it can be freed by garbage collection.
- used gc.collect() frequently to manually perform a garbage collection.
- avoid a high number of tiny and very big data objects. The latter may be hard to allocate, if the memory is fragmented.
As soon as you do not need an object any more, it can be freed by garbage collection.
- used gc.collect() frequently to manually perform a garbage collection.
- avoid a high number of tiny and very big data objects. The latter may be hard to allocate, if the memory is fragmented.
Re: Can RAM be unloaded and over-written?
Thanks for the reply.