Exception handler problem.



Dear Experts,
My GUI application sometimes runs out of memory with the message like
the following:

Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java
heap space

I try to catch this exception with:
1) The Thread.UncaughtExceptionHandler
2) try / catch block "around" my main class
but both attempts do not work.

Is there a simple way to catch exceptions in AWT thread?

Regards,
Serguei.

.



Relevant Pages

  • Re: Exception handler problem.
    ... My GUI application sometimes runs out of memory with the message like ... I try to catch this exception with: ...
    (comp.lang.java.gui)
  • Re: Exception handler problem.
    ... My GUI application sometimes runs out of memory with the message like ... I try to catch this exception with: ...
    (comp.lang.java.gui)
  • Re: Exception handler problem.
    ... I try to catch this exception with: ... Launch the application so that the memory arguments for the JVM are increased beyond the default so that the data your users load does not grow larger than the amount of memory that the JVM allocated to itself. ...
    (comp.lang.java.gui)
  • Re: Exception handler problem.
    ... My GUI application sometimes runs out of memory with the message like ... Is there a simple way to catch exceptions in AWT thread? ... An exception in another thread is harder to catch. ...
    (comp.lang.java.gui)
  • Re: How to troubleshoot bugchecks on my own?
    ... not a memory problem. ... From that exception record and context, ... execute the instruction - without a problem. ...
    (microsoft.public.win32.programmer.kernel)