FAQ: How do I run the garbage collector in a macro or plugin?

If a macro or plugin runs out of memory, you can force garbage collection.

The Java Virtual Machine does garbage collection automatically as necessary, but this can also be forced at a particular time in a plugin or a macro.

In a macro use the call() function (needs version 1.37e):

call("java.lang.System.gc");

In a plugin use the call:

System.gc();
faq/technical/how_do_i_run_the_garbage_collector_in_a_macro_or_plugin.txt · Last modified: 2010/01/26 11:07 (external edit)
Back to top
CC Attribution-Noncommercial-Share Alike 3.0 Unported
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0