"Robert A. Crawford" wrote:

> On Thu, May 06, 1999 at 03:20:08PM -0400, Adam Gifford wrote:
> > if by OutOfMemoryException's i'm assuming i could run a System.gc() as teh
> > first statement in teh catch() and this would free up enough mem to write
> > stuff to the screen and log the exception.
>
>         I thought the JVM was supposed to try to run garbage
> collection before throwing OutOfMemoryException's.
>

i am catching the Exceptions outside the method generating them.  After the
method has finished all the vars in it taking up space should be ready to be
gc'd.  Calling the gc should get rid of enough of tehm to gracefully log teh
exception.




----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to