Try a small delay (Delay(10)) in your mainloop.
It's common for games to *get stuck* because it does more logic than rendering (or- doing logic so much as to mess with windows).
It's common for games to *get stuck* because it does more logic than rendering (or- doing logic so much as to mess with windows).