BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-07-2010, 01:15 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2009
Model: 8350i
PIN: N/A
Carrier: telus
Posts: 40
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Illegal State Exception

Please Login to Remove!

Pretty simple code I thought. I have a timer running and everytime the timertask runs I call the settext method of a label field. I'm using the labelfield as a status bar so I need to update the field everytime the timertask runs.

It works perfect in every OS except 6. For some reason in OS 6 it throws an illegalstateexception when I call the settext method.

What's going on with OS 6?
Offline  
Old 11-07-2010, 01:34 PM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2009
Model: 8350i
PIN: N/A
Carrier: telus
Posts: 40
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Found the solution else where. Sorry people. You simply have to surround the offending code with;

synchronized(Application.getEventLock()) {
todo
}
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Trenton 92-006058 Rev: C-02 Xeon 2400D/512L2/400/1.5 SL6W8 1GBMem 30Day Warranty
$75.0
Trenton 92-006058 Rev: C-02 Xeon 2400D/512L2/400/1.5 SL6W8 1GBMem 30Day Warranty pictureLOT of 4: Intel Xeon Dual Core 3.00 GHz 5050 SL96C LGA771 CPU Processor
$29.95
LOT of 4: Intel Xeon Dual Core 3.00 GHz 5050 SL96C LGA771 CPU Processor pictureLOT of 4: Intel Xeon Processors, 3000DP/1M/800, SL7DW
$24.95
LOT of 4: Intel Xeon Processors, 3000DP/1M/800, SL7DW pictureLOT OF 4: Xeon 2.0GHz/512KB/1M, SL6YJ Processors with Heatsink For Dell DL580 G2
$120.0
LOT OF 4: Xeon 2.0GHz/512KB/1M, SL6YJ Processors with Heatsink For Dell DL580 G2 pictureLOT OF 4: Xeon 2.2GHz/512KB/2M, SL7A5 Processors with Heatsink For Dell DL580 G2
$150.0
LOT OF 4: Xeon 2.2GHz/512KB/2M, SL7A5 Processors with Heatsink For Dell DL580 G2 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.