System.runFinalization() or System.gc()
807597Sep 26 2005 — edited Sep 27 2005Hello, after my program finishes certain tasks, that involve creation of very large objects, and destruction of previous ones, i have to call System.gc() to clean up, otherwise i eventually get an "out of memory" error from windows. Should i call System.runFinalization() before System.gc() to make shure the finalizers of my objects are called? or does calling System.gc() does this automatically? if it does, then why have the System.runFinalization() at all?