This article applies to the following:
- BlackBerry® Java® Development Environment (BlackBerry JDE)
You receive the following error message:
Process [ApplicationName] killed due to message queue overflow
Uncaught Exception: [ApplicationName] is not responding; process terminated
An application is blocking the main event thread.
The main event thread processes system messages. Blocking this thread prevents system messages from being processed and can lead to a message queue overflow.
Because there is a finite amount of storage space for messages, the issue is caused when these messages are not being processed. If an application stops processing messages for a long period of time, the system assumes that the application has stopped responding and is no longer functioning as expected. This is the reason why the process was terminated.
Move long processes or processes that block to a separate background thread.