Adeel & Chris,
Thanks for the replies. I appreciate you taking the time to test this. I've looked into this a bit more and I can confirm that my experience matches that of Chris.
I've attached 3 listing that show my total memory usage as
reported via GC.GetTotalMemory(false) for each of the test scenerios I've
described.
listing-nohtml.txt:
Constructs txt with "<p>This is a
paragraph.</p>" and set IsHtmlSupported = false
Listing-p.txt:
Constructs txt with "<p>This is a
paragraph.</p>" and set IsHtmlSupported = true
listing-ul.txt:
Constructs txt with "<ul><li>Bullet 1</li><li>Bullet
2</li><li>Bullet 3</li></ul>" and set
IsHtmlSupported = true.
The “nohtml” and the “p” test show almost identical memory usage.
The “ul” test shows runaway memory usage hitting 1 GB of usage around iteration
250.
Just to be clear, I'm not considering Aspose. My
organization has purchased a license and is experiencing this problem in our
production web application. Any support that you can provide would be greatly
appreciated.
Thanks,
Kyle