08-05-2009 01:18 PM
i feel like my device leaks memory. it just gets slower and slower over time until i have to restart it. Is there a programmatic way to recover leaked memory?
08-05-2009 01:44 PM
you can invoke System.gc() to initiate garbage collection, although this will not trigger garbagecollection right away.
or you can use the BlackBerry JDE profiler to find the section where the leak is originating. Then optimize that part.
08-05-2009 02:32 PM
ah i see. actually the device is already equiped with a LowMemoryLIstener where it automatically frees up the memory in case it detected a low memory. you can also try the System.gc().
you can also search for it manually and uninstall the particular application that causes the leak.
08-05-2009 02:34 PM
08-05-2009 02:45 PM