tags:

views:

358

answers:

1

Hi

Im wondering if there is a way to call gc from code, hopefully to free some memory...

+2  A: 

You can request it with

System.gc();

Although the important note is this is only a request. There is no guarantee that the GC will run.

Chris Thompson