Re: Exception handler problem.




<Serguei.Goumeniouk@xxxxxxx> wrote in message news:1152635000.805321.23770@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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?

Look at the stack trace. Does it contain any methods you wrote? If so, you could put your catch statement in those methods.

- Oliver

.



Relevant Pages

  • 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)
  • Re: Strange sudden shutdown issue with CF app
    ... Phone devices are notoriously low on virtual memory right out of the box because the OEMs decide to put every little thing into its own DLL and then have 25 processes launched at boot. ... Chris Tacke, Embedded MVP ... We have created an app that basically connects to a web service gets data, then stores it locally on the device, and when a record needs to be modified/added the system first tries to connect the web server sees if its availible, if not then it stores in locally on the device until the connection comes back, now I noticed that if the device does not mess around with the data connection then the application sits nicely as long as its open, and never gets shut down. ... But again most of the time I get no exception at all but just simply disappears. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: error wince600 boot message after dowload PB6 OS to HW board
    ... I would suspect that you have a memory layout problem, either the bootloader is using memory that is clobbering the downloaded image in some way, or the memory layout in the config.bib is wrong. ... Old or invalid version stamp in kernel structures - starting clean! ... Exception 'Access Violation': Thread-Id=00410002, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Strange sudden shutdown issue with CF app
    ... Phone devices are notoriously low on virtual memory right out of the box because the OEMs decide to put every little thing into its own DLL and then have 25 processes launched at boot. ... Chris Tacke, Embedded MVP ... We have created an app that basically connects to a web service gets data, then stores it locally on the device, and when a record needs to be modified/added the system first tries to connect the web server sees if its availible, if not then it stores in locally on the device until the connection comes back, now I noticed that if the device does not mess around with the data connection then the application sits nicely as long as its open, and never gets shut down. ... But again most of the time I get no exception at all but just simply disappears. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Combined usage of exception handling
    ... handler will let the exception go to the defaul SEH, ... >locations in memory that can contain garbage at this point. ... For the crashes we see in the real world (after alpha and beta ... does not cause a system failure. ...
    (microsoft.public.vc.language)