Troubleshooting guide

220
BlackBerry Java Development Environment Development Guide
input.close();
stream.close();
data = db.getArray();
} catch (IOException e1) {
// a problem occurred with the input stream
// however, the original StreamConnectionNotifier is still valid
System.err.println(e1.toString());
if ( input != null ) {
try {
input.close();
} catch (IOException e2) {
}
}
if ( stream != null ) {
try {
stream.close();
} catch (IOException e2) {
}
}
}
}
_notify.close();
_notify = null;
} catch (IOException ioe)
{
// likely the stream was closed
System.err.println(ioe.toString());
if ( _notify != null ) {
try {
_notify.close();
_notify = null;
} catch ( IOException e ) {
}
}
}
}
}
}
private final class HTTPMainScreen extends MainScreen
{
public void close() {
// Stop the listening thread.
_listeningThread.stop();
try {
_listeningThread.join();
} catch (InterruptedException e) {
System.err.println(e.toString());
}
super.close();