Re: [android-developers] insidious multi-threading bug

2013-04-24 Thread TreKing
On Wed, Apr 24, 2013 at 10:26 AM, bob wrote: > So, basically, the drawing thread was looping thru some enemy ships trying > to draw them. > > Meanwhile, someone pressed the reset button on the game (an onTouchEvent), > and the enemy ship LinkedList got cleared. This clearing occurred while > the

[android-developers] insidious multi-threading bug

2013-04-24 Thread bob
I've been investigating an insidious error in an Android OpenGL game app. This error was brought to my attention by ACRA. I believe that the source of the error is that the code in an onTouchEvent executes in a different thread than the code in the OpenGL drawing thread. So, basically, the dr