I
Ivan Villanueva
Hello,
I have a Thread object which sometimes throws an OutOfMemoryError.
Is it possible to stop (destroy) that thread without terminating the main
process ?
I have thought about something like that:
searchThread.setUncaughtExceptionHandler(
new Thread.UncaughtExceptionHandler() {
public void uncaughtException(Thread t, Throwable e) {
}
}) ;
Or, is there a trick to know when a thread is going to throw one ?
Iván Villanueva.
I have a Thread object which sometimes throws an OutOfMemoryError.
Is it possible to stop (destroy) that thread without terminating the main
process ?
I have thought about something like that:
searchThread.setUncaughtExceptionHandler(
new Thread.UncaughtExceptionHandler() {
public void uncaughtException(Thread t, Throwable e) {
}
}) ;
Or, is there a trick to know when a thread is going to throw one ?
Iván Villanueva.