The following eats away the heap on the Toshiba Thrive but not on the LG G2X:
byteBuf = ByteBuffer.allocateDirect(vertices.length * 4); byteBuf.order(ByteOrder.nativeOrder()); vertexBuffer = byteBuf.asFloatBuffer(); vertexBuffer.put(vertices); vertexBuffer.position(0); I've tried byteBuf.clear, byteBuf.reset, making byteBuf static, System.gc, and combinations of these, but nothing works. I wonder why this is only a problem on the Toshiba but not the LG? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en