GC_FOR_MALLOC Freed Error, How to Avoid this?
<p>I am making a quiz application, when the user selects a category (eg C#), 20 questions from that category will appear one by one.</p>

<p>Coding is mostly done. When i was testing, the First two attempts worked correctly. After then I started getting these errors (I know it's freeing the memory):</p>

<pre><code> GC_FOR_MALLOC freed 4136 objects / 374744 bytes in 66ms
 GC_FOR_MALLOC freed 2345 objects / 374744 bytes in 51ms
 GC_FOR_MALLOC freed 3453 objects / 374744 bytes in 62ms
 GC_FOR_MALLOC freed 1245 objects / 374744 bytes in 26ms
 GC_FOR_MALLOC freed 9893 objects / 374744 bytes in 86ms
</code></pre>

<p>I tried restarting eclipse, cleaned the project, restarted the emulator, cleared the dalvik-cache of my app. Nothing worked after this, even logcat isn't logging anything.</p>

<p>How do i find the culprit for this? I have never created this many objects, but GC_FOR_MALLOC is freeing them.</p>

<p>Can anyone suggest good practices to avoid these kind of errors in future?</p>
