[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: OutOfMemoryError on event-handling thread
|
Robert B wrote:
> Once such thing occurs, show error dialog and exit
> program.
>
Is this really necessary? I'm confused... people talk about
OutOfMemoryError like it's a suicide note from the JVM, but if it was
caused by a heap allocation error, it doesn't seem like such a big deal.
If the error is caught way up the stack, the next allocation may very well
succeed because of references on the stack becoming collectable. Or, the
allocation request may have been for a 400MB array.
In any case, I still want to know what the SWT event-handling thread does
with an OutOfMemoryError. (I guess the answer to my question about setting
a handler is "No.")
-David