samedi 2 juillet 2016

Force a garbage collection

I have been frustrated with out of memory (OOM) problems in a rather large app I am developing.

After a lot of reading it seems to me that it is possible my problem might be related to inadequate or not sufficiently timely activity by the garbage collector.

About the only control over the garbage collector appears to be code of this nature:

Code:
  Private r As Reflector
r.RunStaticMethod(
"java.lang.System", "gc", Null, Null)
which merely "hints" to the OS that it might like to have a...

Force a garbage collection

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/29dV9qS
via IFTTT

Aucun commentaire:

Enregistrer un commentaire