10-08-2012 10:05 AM
My application is terminating because of the error: "Queue too large ". How many Threads could my application run at same time? How can I avoid this?
10-08-2012 10:27 AM
You're probably calling invokeLater() too many times.
10-08-2012 10:31 AM
10-08-2012 10:40 AM
10-08-2012 10:48 AM
10-08-2012 11:36 AM
1) What is the full error?
2) What makes you think it is because you have too many threads? There would be a TooManyThreads error if that were the case (http://supportforums.blackberry.com/t5/Java-Develo
3) What can you tell us about what you're threads are doing?
There are several ways I've seen the "Queue too large":
1) Event injection called too fast (http://supportforums.blackberry.com/t5/Java-Develo
2) UiApplication.invokeLater called too often, filling up the UI queue (http://supportforums.blackberry.com/t5/Java-Develo
3) Long running task on UI thread blocking UI execution, causing input events to build up in the queue. (http://supportforums.blackberry.com/t5/Java-Develo
10-08-2012 12:20 PM
Hi,
The full error is: queue too large (76); user input event(s) dropped. After this I get another error: is not responding; process terminated.
10-08-2012 12:24 PM
10-08-2012 12:27 PM
10-08-2012 12:35 PM
What method are you using to update the UI? invokeAndWait? Synchronized on the event lock?
Can you confirm that your code for the ui update is quick and doesn't do anything like network calls?