I'm sorry that this question is a bit vague but I've not been able to get any useful info from debugging.
I have a thread that I call using new Thread().Start, it will then run for a a short time and I receive this message:
Uncaught exception:Application "my app name(201)" is not responding; process terminated
Now what's frustrating is I am able to run the same process but without a thread, which then locks up my Application but I can see from my Eclipse console that its working without error. So I know their isn't an error with the functions I'm using on the Thread.
I thought perhaps the issue might lie with me using a "InvokeLater" function to update my GUI with the threads progression, I am spamming this pretty hard and I fear its destroying my thread.
Any suggestions?
To expand upon my post, the issue was due to me calling this code ALOT from my other thread:-
invokeLater(new Runnable()
{
public void run()
{
_output.setText(_output.getText() + "\n" + msg);
}
});
This was building up a queue that quickly crashed my application.
My solution to the option was to use the event thread by adding this code to my function:-
synchronized(Application.getEventLock()) {
_output.setText("new text " + System.currentTimeMillis());
}