Game Loop not working? help?

Ok, so I have a very simple game loop, which isn’t working. At the moment its not even required to do much but it just isn’t working. I don’t see why, it simply wont repaint the screen. With the blackberry libraries invalidate() is supposed to be the same as repaint().

here’s my code:
http://pastebin.java-gaming.org/40b42118837

I never use BB API and I don’t know how it works. But since Logic is extending Thread, shouldn’t you call run()?

Okay I didn’t see it on constructor. The problem is nested while(). I bet it loops forever on line 39. Remove the while() inside update().

thanks i took out the while loop and it worked perfectly :slight_smile:

Great! ;D

Dont forget to use breakpoint next time.