Every now and then, ABCpdf runs out of memory

Electrons_Ahoy picture Electrons_Ahoy · Oct 6, 2008 · Viewed 9.6k times · Source

The project I'm on is using a 3rd party component to build dynamic PDFs in a VB.Net web system called ABCpdf.Net. (not a terrible tool, but not a great one either.)

Every now and then, for reasons I can't fathom, the document object throws a SEHException. Digging futher, it turns out this is caused by a custom exception in the document object of the type WebSupergoo.ABCpdf6.Internal.PDFException. The contents contains only the not -terribly-helpful title "Unable to get image data. Out Of Memory" Usually this happens when trying to add an image to the PDF. Since these images are PNGs of less than 100k, I'm guessing their size isn't the issue.

Also, the really strange thing is that once this issue starts happening, the only way to get it to stop seems to be to reboot the web server, which is clearly a little sub-par.

Has anyone ever had this problem (or even used this tool?)

Answer

Electrons_Ahoy picture Electrons_Ahoy · Oct 6, 2008

Fascinating. I had come to the conclusion that was what must be going on. Do you still call the doc.Clear() at the end of the using block?