Ah thanks, the volatile worked
Type: Posts; User: Bingo90
Ah thanks, the volatile worked
I don't want to show all my code just for this problem. But the while loop continues indefinitely.
--- Update ---
But strangely when in debug mode in eclipse and suspending the program and...
Actually, this isn't my real code it's just an example. My real code has lots of object updating stuff in it but without an output it doesn't seem to stop.
I've got a thread with a loop, here's my code:
public class UpdateThread extends Thread
{
public void run()
{
while (Game.isActive)
{