Try to user wd.remove() and sheet.remove() After every iteration !!
-----Original Message----- From: Sushil Khekare [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 4:37 PM To: poi-user@jakarta.apache.org Subject: protected word doc when i try to extract text from microsoft word document POI goes out of memory when actually memory is not so much consumed by jvm. Any body knows how to solve this also is there any new version of poi in pipeline. Code goes out of memory at this line byte[] tableStream = new byte[size]; the file size is only 24 kb but it is password protected for opening. Any help?????? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/