Re: [iText-questions] out of Kernel memory

2009-08-12 Thread Paulo Soares
Document.Close() closes the output stream, there's no need to close it twice. Paulo - Original Message - From: "Mike Marchywka" To: Sent: Wednesday, August 12, 2009 4:10 PM Subject: Re: [iText-questions] out of Kernel memory > Maybe it's related to the inde

Re: [iText-questions] out of Kernel memory

2009-08-12 Thread Kobty, Joseph
@lists.sourceforge.net Subject: Re: [iText-questions] out of Kernel memory > Maybe it's related to the indexing sevice. > > Anyway, I think the notion that there is some feature > > that scans the files is a good one. Now you have three suggestions: > > Virus checker > >

Re: [iText-questions] out of Kernel memory

2009-08-12 Thread Mike Marchywka
> Maybe it's related to the indexing sevice. > > Anyway, I think the notion that there is some feature > > that scans the files is a good one. Now you have three suggestions: > > Virus checker > > SVN (or some other similar tool) > > The windows indexing service (not sure about the name, but I mea

Re: [iText-questions] out of Kernel memory

2009-08-12 Thread Klas Lindbäck
rvice that indexes files to enable faster searching). /Klas Ämne: Re: [iText-questions] out of Kernel memory Från: "Kobty, Joseph" Datum: Tue, 11 Aug 2009

Re: [iText-questions] out of Kernel memory

2009-08-11 Thread Mike Marchywka
; FileStream strm = new FileStream(Path.Combine(outputPath, > reportName), FileMode.Create); > > PdfWriter writer = PdfWriter.GetInstance(pdfDocument, strm); > > pdfDocument.Open(); > > pdfDocument.Add(new Paragraph("test")); > > pdfDocument.Close(); > > }

Re: [iText-questions] out of Kernel memory

2009-08-11 Thread Howard Shank
iText here Sent: Tuesday, August 11, 2009 11:33:29 AM Subject: Re: [iText-questions] out of Kernel memory I will try that, thanks. Another interesting observation. The kernel memory leak starts after about 7000 files created, so it is not immediate, And then continues to grow. Only way to shri

Re: [iText-questions] out of Kernel memory

2009-08-11 Thread Paulo Soares
de.Create); PdfWriter writer = PdfWriter.GetInstance(pdfDocument, strm); pdfDocument.Open(); pdfDocument.Add(new Paragraph("test")); pdfDocument.Close(); } Paulo - Original Message - From: "Kobty, Joseph" To: "Post all your questions about iText here" Sent

Re: [iText-questions] out of Kernel memory

2009-08-11 Thread Kobty, Joseph
, 2009 11:14 AM To: Post all your questions about iText here Subject: Re: [iText-questions] out of Kernel memory The SYSINTERNALS tool you are referring to is PROCMON. Great tool for tracking down internal issues in Windows. Howard Shank - Original Message From: Mike Marchywka To: itext

Re: [iText-questions] out of Kernel memory

2009-08-11 Thread Howard Shank
] out of Kernel memory > Date: Tue, 11 Aug 2009 07:47:39 -0700 > From: hgshank > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] out of Kernel memory > > If the files are being written to a different serv

Re: [iText-questions] out of Kernel memory

2009-08-11 Thread Mike Marchywka
> Date: Tue, 11 Aug 2009 07:47:39 -0700 > From: hgshank > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] out of Kernel memory > > If the files are being written to a different server and that server > expe

Re: [iText-questions] out of Kernel memory

2009-08-11 Thread Howard Shank
sday, August 11, 2009 10:30:47 AM Subject: Re: [iText-questions] out of Kernel memory Change your test to the following and let it run for a few minutes and you will see the kernel memory climb It does not happen in your example because you are writing to the same file name each time. Seems to be a

Re: [iText-questions] out of Kernel memory

2009-08-11 Thread Kobty, Joseph
Writer.GetInstance(pdfDocument, strm); pdfDocument.Open(); pdfDocument.Add(new Paragraph("test")); pdfDocument.Close(); } Paulo - Original Message - From: "Kobty, Joseph" To: "Post all your questions about iText here" Sent: Monday, August 10, 2009 9:32 PM Subjec

Re: [iText-questions] out of Kernel memory

2009-08-10 Thread Kobty, Joseph
:03 PM To: Post all your questions about iText here Subject: Re: [iText-questions] out of Kernel memory I have this code running and all is ok. for (int i = 0; i < 100; i++) { Document pdfDocument = new Document(); FileStream strm = new FileStream("c:\\atp.pdf", FileMode.Create

Re: [iText-questions] out of Kernel memory

2009-08-10 Thread Kobty, Joseph
here Subject: Re: [iText-questions] out of Kernel memory I have this code running and all is ok. for (int i = 0; i < 100; i++) { Document pdfDocument = new Document(); FileStream strm = new FileStream("c:\\atp.pdf", FileMode.Create); PdfWriter writer = PdfWriter.GetInstance(pdfD

Re: [iText-questions] out of Kernel memory

2009-08-10 Thread Paulo Soares
new Paragraph("test")); pdfDocument.Close(); } Paulo - Original Message - From: "Kobty, Joseph" To: "Post all your questions about iText here" Sent: Monday, August 10, 2009 9:32 PM Subject: Re: [iText-questions] out of Kernel memory Yes I am using V4

Re: [iText-questions] out of Kernel memory

2009-08-10 Thread Kobty, Joseph
-questions] out of Kernel memory Are you using iTextSharp 4.1.6? If you are using .NET 2.0 without SP1 you may have leaks due to leaks in the framework. Paulo - Original Message - From: "Kobty, Joseph" To: Sent: Monday, August 10, 2009 8:46 PM Subject: [iText-questions] out of Ker

Re: [iText-questions] out of Kernel memory

2009-08-10 Thread Kobty, Joseph
helps, but it did not. From: Howard Shank [mailto:hgsh...@yahoo.com] Sent: August 10, 2009 4:22 PM To: Post all your questions about iText here Subject: Re: [iText-questions] out of Kernel memory Joseph, A couple of questions for you. 1. Why are you closing the strm? It is inside a using block

Re: [iText-questions] out of Kernel memory

2009-08-10 Thread Howard Shank
Joseph, A couple of questions for you. 1. Why are you closing the strm? It is inside a using block and that handles it for you. 2. Why are you closing the strm before finishing the PDF? You should consider the following, Remove strm.close(); Regards, Howard Shank

Re: [iText-questions] out of Kernel memory

2009-08-10 Thread Paulo Soares
Are you using iTextSharp 4.1.6? If you are using .NET 2.0 without SP1 you may have leaks due to leaks in the framework. Paulo - Original Message - From: "Kobty, Joseph" To: Sent: Monday, August 10, 2009 8:46 PM Subject: [iText-questions] out of Kernel memory Hi I am creating PDF doc