----- Original Message ----- From: "milind" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, February 27, 2007 11:17 PM Subject: Re: [iText-questions] Files are not beging closed
> milind <milind.pandit <at> db.com> writes: > >> >> Hello, >> We are having a problem where we converts the tif images to pdf. >> We observed that the tif images opend using the RandomAccessFileOrArray >> are >> not beging closed. We are using the RandomAccessFileOrArray close method > and >> it seems its not closing the files. >> Any advise? >> >> regards, >> milind >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share >> your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> iText-questions mailing list >> iText-questions <at> lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/itext-questions >> Buy the iText book: http://itext.ugent.be/itext-in-action/ >> >> > Yes i am sure there is no exception thrown. I am running the program on > linux > and after the succefful execution i am running the command lsof for the > process id and it shows the image file handlers are open. I doubt the > MappedRandomAccessFile closing the files properly. I see there is > FileInputStream open but which is not closed anywhere. But I am positive > that > there must be some issue regarding the closing of files. I am getting the > too > many files open error after running the process for 'n' number of times. As far as I can see in the code the file is properly closed. Can you check if using Image.getInstance("image.tif") you have the same problem? Paulo ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
