I synchronized the method and it all seems to be working fine now. Thanks
for helping me with this rather obscure error.
On Mar 16, 2009 7:31 PM, "sm1" wrote:
SimpleDateFormat is known to not be thread-safe, and it's instances
must be either unique to each thread or otherwise be synchronized.
SimpleDateFormat is known to not be thread-safe, and it's instances
must be either unique to each thread or otherwise be synchronized.
happened to me a while back.
serge
On Mar 16, 7:15 pm, Torgny wrote:
> Yeah, the code is in its own thread. It's in a class that is
> instantiated in the threa
Yeah, the code is in its own thread. It's in a class that is
instantiated in the thread. I tried added synchronized to the method
that generates the date, and so far I haven't seen it crash at all.
Will try with a loop as well. I am still a bit new to the whole Java
thing.
On Mar 16, 6:42 pm, "ca
Can you show the code?
It sounds like the GET isn't relevant. Is your code in its own thread?
If so is it synchronised?
You should be able to write a test which iterates 1000 times just
performing the format, and catch it.
--
Android Academy http://www.androidacademy.com
On Mar 16, 6:31 pm, Torgn
4 matches
Mail list logo