thanks for your reply. I have just tested the new version with the sample I provided and the problem still exists. To replicate, simply set the variable closeStreamsAfterUsing = true and then run it.
Hello Jon,
Great, thanks for that. Any ETA on when the developers will be able to schedule this in as we hope to go live with our app next week and whilst we can live with having to reset the service every day to clear the leaks it is obviously not a long (or even short) term solution!

Hello Jon,
//1. calls PdfEditor.Concatenate and saves its result into memory stream:MemoryStream finalDoc = new MemoryStream();pdfEditor.Concatenate(itemLists, finalDoc);//2. Creates Aspose.Pdf.Document by this memory stream data:returnItem = new Aspose.Pdf.Document(finalDoc);//3. Closes memory stream:finalDoc.Close();//4. returns created document.return returnItem;
MemoryStream stream = new MemoryStream(File.ReadAllBytes(“InFile.pdf”));Document doc = new Document(stream);stream.Close();//do something with document (add new page) and savedoc.Pages.Add(); // <— exception “Closed stream” heredoc.Save(“outfile.pdf”));
MemoryStream stream = new MemoryStream(File.ReadAllBytes(“InFile.pdf”));Document doc = new Document(stream);//do something with document (add new page) and savedoc.Pages.Add();doc.Save(“outfile.pdf”));stream.Close(); // close stream when document is no more needed
Hi there,
Any progress with this as it has now been almost another month?
Hello Jon,
seems like a good case for the “using” statement
What are the uses of "using" in C#? - Stack Overflow
Hi Max,max-3:
seems like a good case for the "using" statement
http://stackoverflow.com/questions/75401/uses-of-using-in-c-sharp