Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > [J2ME] UI /freezes/ after IOException

Thread Tools

[J2ME] UI /freezes/ after IOException

Posts: n/a

I have a MiDlet that starts a Thread through a Runnable, in which
there is IO activity:
Runnable runner = new Runnable() { // some IO stuff there };
Thread thd = new Thread(runner);

The application runs well, until I need to close the IO channels that
are opened in that separate Thread.
Of course, I catch the IOException in my Thread, and the Thread
completes properly (and dies...).
But after this catch, the UI is not responding: if I press a button the
menu will not show, and if I do some programmaticaly changes in the UI
it does not display and the call blocks (i.e. if I add an item in the
current screen, nothing happens and the next line --System.out.println--
doesn't execute).
I know the application didn't die, cause I have another Thread running a
'while' loop and printing "I am alive!" even when the UI freezes.
And also if I don't perform UI changes I can print stuff in the main Thread.

Any idea to help me ? Thank you.

What about a JScooby snack Shaggy ? ... Shaggy ?!
Reply With Quote

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
System.IO.IOException: Cannot create a file when that file already exists. Chad Crowder ASP .Net 7 10-24-2009 06:39 AM
System.IO.IOException: The filename, directory name, or volume label syntax is incorrect. Trevor ASP .Net 4 05-07-2008 11:33 PM
IOException after Socket.connect() alessandro Java 2 08-31-2004 09:14 AM
serialization and IOException - please help Akuma Java 0 08-15-2003 04:25 AM
System.IO.IOException Krissy ASP .Net 2 07-31-2003 02:57 AM