I have a MIDlet running on the Sun´s Wireless Toolkit 2.0.
The MIDlet has 2 threads running simultaneously. One thread is changing some variables while the other one is simply reading them.
My problem is that SOMETIMES (not always, thats the irritating part) the Wireless Toolkit ´s KToolbar window shows this:
Uncaught Exception java/lang/ArithmeticException
and after this the 1st thread that was changing all the variables stops !! rest of the program is running fine !
Can anybody please give me a hint what is going wrong??
The MIDlet has 2 threads running simultaneously. One thread is changing some variables while the other one is simply reading them.
My problem is that SOMETIMES (not always, thats the irritating part) the Wireless Toolkit ´s KToolbar window shows this:
Uncaught Exception java/lang/ArithmeticException
and after this the 1st thread that was changing all the variables stops !! rest of the program is running fine !
Can anybody please give me a hint what is going wrong??