OutOfMemoryError while rendering in libgdx
<p>I have to render mesh array in using libgdx in render(). I used handler because every time I'm getting new data in getMeshToRender() method in meshArr array.</p>

<pre><code>        onCreate()
        {
          handler.removeCallbacks(sendUpdatesToUI);  
          handler.postDelayed(sendUpdatesToUI, 1000); // 1 second
        }

        Runnable sendUpdatesToUI = new Runnable() 
     {
            public void run() 
            {
                //DisplayLoggingInfo();   
                getMeshToRender();
                handler.postDelayed(this, 1000); // 1 seconds
            }
        };          

   getMeshToRender()

 {

   .......
    meshArr = new Mesh[numMesh];
   .......
 }
</code></pre>

<p>in Render() method it initially loads that meshArr but then crashes with OutOfMemoryError.</p>

<p>Any solution will be aprreciable.
Thanks</p>
