Timer & update problems
Hi y'all, I've been a member for a while but this is the first time I've been so stumped that I actually post with a problem.
I'm writing an app for Java wireless/mobility. I dunno how this would make any difference but the problem is this:
Whenever I use a Timer which runs an instance of the Update class, I always have problems with whole swathes of the code not being read, even discounting the effect of the time interval being too short to allow the machine to read through the entire bytecode.
I mean, even code which is placed BEFORE the Timer object was instantiated seems not to be read. This is the only way I can account for my variables and objects not being initialised correctly.
Has anyone else had hassles with Timers in any variety of Java? How did you cope with them?
On my previous app I simply extended the period from 200ms to 250ms. I suppose this allowed the entire Update code to be read before the next iteration.
This time however, I fear I'm having problems of an entirely different kind, as described before ie: code which occurs before and outside the loop not being read.
I'm writing an app for Java wireless/mobility. I dunno how this would make any difference but the problem is this:
Whenever I use a Timer which runs an instance of the Update class, I always have problems with whole swathes of the code not being read, even discounting the effect of the time interval being too short to allow the machine to read through the entire bytecode.
I mean, even code which is placed BEFORE the Timer object was instantiated seems not to be read. This is the only way I can account for my variables and objects not being initialised correctly.
Has anyone else had hassles with Timers in any variety of Java? How did you cope with them?
On my previous app I simply extended the period from 200ms to 250ms. I suppose this allowed the entire Update code to be read before the next iteration.
This time however, I fear I'm having problems of an entirely different kind, as described before ie: code which occurs before and outside the loop not being read.
