Hoping someone would be able to advise on the memory leak issue we are having where after we use the method ProcessParagraphs() the memory rises as expected however never returns back down to its normal level until the application has been stopped.
Here is some of the code that is used
Main Method.png (182.4 KB)
ComposeForwardLookPDFmethod.png (104.6 KB)
MemorySnapshots.png (32.4 KB)
Snapshot id 1 = Start of the CreateForwardLookPDF method (normal level)
Snapshot id 2= ComposeFowardLook method builds up pdf just before ProcessParagraph method is called.
Snapshot id 3 = ProcessParagraph method has completed and ComposeForwardLook method has completed(notable rise)
Snapshot id 4 = Document is saved into a memory stream
Snapshot id 5 = Memory stream has been returned and the FreeMemory method has ran
Snapshot id 6 = Dispose() has ran
Snapshot id 7 = GarbageCollecter.Collect() has ran and the CreateFowardLook method has completed
Please let me know if you need any further information.