I am currently having a memory leak issue (Im pretty sure its not B4A) when using the scrollview control. I am loading data via a db. After 8-10 reloads, the APP becomes very sluggish, causing the scrollview to be very choppy, and APP response to slow considerably.
(note, I am clearing out everything before reloading the data)
On Froyo y Gingerbread, ICS, I decreased the load time, and some of the choppiness by hiding it, loading it, and then showing it.
However, memory usage continued to climb each new load. So, I stumbled across using the reflector lib to inject a hint for garbage collection. This immediately took my APP from 51MB (at the height of the choppiness) back down to 23MB (this seems to be the normal value)! I thought my problems were solved! Well, they are partially - on Froyo y Gingerbread, I now have no problems!
But, on ICS, while my "leak" appears to be gone, the app still becomes really sluggish, to the point of hardly responding.
So, I'm wondering if GC is handled differently in ICS?
I am using the following to call the hint injector:
Dim GCollector As Reflector
GCollector.RunStaticMethod("java.lang.System", "gc", Null, Null)
any help or ideas would be greatly appreciated.
...Pablo