Every now and then, ABCpdf runs out of memory

こ雲淡風輕ζ 提交于 2019-12-04 15:01:48

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?

Update, three months later:

As near as I can tell, the memory issues were all resolved when we upgraded from ABCpdf 6 to 7. It would seem that version 7 is no longer a COM object with a .NET wrapper, but all managed code from the bottom up. It's still not the greatest PDF generator out there, but the resource disposal problems seem to have been resolved.

I haven't specifically seen this error before, but we've had memory issues with ABC PDF before.

Long story short is that it is NOT a completely managed code base, but simply a .NET wrapper around their COM version. That being said, we traced our memory usage problem to not disposing of their objects properly.

So, instead of:


Dim doc As New Doc()
'etc...

do this:


    Dim doc as Doc
    Using doc As New Doc()
      'etc...
    End Using
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!