Search:

Type: Posts; User: Bingo90

Search: Search took 0.11 seconds.

  1. Replies
    7
    Views
    3,785

    Re: Java strange thread behavior

    Ah thanks, the volatile worked
  2. Replies
    7
    Views
    3,785

    Re: Java strange thread behavior

    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...
  3. Replies
    7
    Views
    3,785

    Re: Java strange thread behavior

    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.
  4. Replies
    7
    Views
    3,785

    Java strange thread behavior

    I've got a thread with a loop, here's my code:


    public class UpdateThread extends Thread
    {
    public void run()
    {

    while (Game.isActive)
    {
Results 1 to 4 of 4