V
volt9000
I'm using PdfSharp (an open-source PDF manipulation library) to
generate a very large PDF ( 1500+ pages.) My program crashes before
reaching the end because of the massive amounts of memory being used
(after 750 entries the memory footprint is ONE GIGABYTE.)
So I've gotten around this by splitting up the word: every X number of
entries, I close the PDF and start a new one, with the intention of
combining the PDFs at the end. The problem is, after all is said and
done, the memory footprint of the program is still quite large (nearly
200MB) despite my attempts to release the object. I've tried several
methods including trying to force the garbage collector (GC.Collect()
and GC.WaitForPendingFinalizers()) but nothing seems to help.
How can I release the memory?
generate a very large PDF ( 1500+ pages.) My program crashes before
reaching the end because of the massive amounts of memory being used
(after 750 entries the memory footprint is ONE GIGABYTE.)
So I've gotten around this by splitting up the word: every X number of
entries, I close the PDF and start a new one, with the intention of
combining the PDFs at the end. The problem is, after all is said and
done, the memory footprint of the program is still quite large (nearly
200MB) despite my attempts to release the object. I've tried several
methods including trying to force the garbage collector (GC.Collect()
and GC.WaitForPendingFinalizers()) but nothing seems to help.
How can I release the memory?