• Post Reply Bookmark Topic Watch Topic
  • New Topic

A hard problem with J2ME  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to make a J2ME software but there seems to be a persistent problem to get rid of.
It seems that in the software I am building,
the value of one variable increases only one time
while it should increase many times along the execution of the program.
But if I step the software with a debugger line by line
the debugger obtains the right values for the variable
as long as I keep debugging line by line.
Still, the software is useless since it gives the nonupdated values constantly.
What could be wrong with the software/development environment/other?
In the source code there is the appropriate incrementation for the variable.


Thank you for your help!
 
Rancher
Posts: 1815
15
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it that when you restart the application, you get the non updated value again?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!