lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Terence Lai <t...@trekspace.com>
Subject RE: Re: OutOfMemoryError
Date Tue, 17 Aug 2004 22:54:17 GMT
Thanks for pointing this out. Even I fixed the code to close the "fsDir" and also add the ex.printStackTrace(System.out),
I am still hitting the OutOfMemeoryError.

Terence

> On Wednesday 18 August 2004 00:30, Terence Lai wrote:
> >             if (fsDir != null) {>                 try {>  
    
>               is.close();>                 } catch (Exception ex) 
> {>                 }>             }
> You close is here again, not fsDir. Also, it's a good idea to never ignore exceptions,

> you should at least print them out, even if it's just a close() that fails.
> Regards Daniel
> -- http://www.danielnaber.de
> 




----------------------------------------------------------
Get your free email account from http://www.trekspace.com
          Your Internet Virtual Desktop!

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message