I've just purchased your Solution "Spire.PDF Platinum Pack"
Now I have expirienced some horrible memory leaks, that just are not acceptable.
I'm using Spire.PdfViewer in a WPF Project.. Everything works fine, the registration was successfully.
Now I'm having a scenario where my users will Load a PDFStream in my PDFViewer Control like so:
- Code: Select all
public void AddDocumentToPdfViewer(byte[] source)
{
using (System.IO.MemoryStream xms = new System.IO.MemoryStream(source))
{
PDFDocumentViewer.LoadFromStream(xms);
}
}
Now imagine, this stream is some MB. This function is called maybe 10-20 times.. But you PDFViewerControl does not dispose the used memorystream, even if I call PDFDocumentViewer.CloseDocument() and GC.Collect().
I did this while debugging in VisualStudio and my Application Memory became really fast over 1-2 GB!
Could you please guide me, how I can prevent a memory-loss in that situation?
Kind Regards